当前位置:网站首页>[online problem processing] how to kill the corresponding process when the MySQL table deadlock is caused by the code
[online problem processing] how to kill the corresponding process when the MySQL table deadlock is caused by the code
2022-07-06 07:14:00 【Game programming】
colleagues There's something wrong with the code
Object savePoint = TransactionAspectSupport.currentTransactionStatus().createSavepoint();try{ // Create order agOrderRelationSwjList.forEach(e->{ // If there's a record Delete the original //LambdaQueryWrapper<AgSwjMfiveOrder> queryWrapper = new LambdaQueryWrapper(); //queryWrapper.eq( AgSwjMfiveOrder::getMfiveOrder, order.getOrderCode() ).eq( AgSwjMfiveOrder::getSchemeId,e.getSchemeCode() ); //agSwjMfiveOrderService.remove( queryWrapper); operationFactory.getOperationService(SwjConstants.SWJ_L).createOrder(order.getOrderCode(),e.getSchemeCode()); });} catch (Exception e){ TransactionAspectSupport.currentTransactionStatus().rollbackToSavepoint(savePoint); throw new ServiceException(" abnormal !");} In the above fault code Deletion performed , Why do you lock the watch ? The transaction was not committed ? Transactions are automatically committed ... Go back and check the code
First processing MYSQL
select * from information_schema.innodb_trx
Inside trx There is no way kill Dropped
Sure show engine innodb status
Get the data Search the corresponding trx_id
Will find Can be in show processlist The corresponding thread in ID, In this way, we can kill
The transaction thread of this failure ID Namely 194788882, You can see The information is still very comprehensive

author : Fang Dongxin
Game programming , A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
边栏推荐
- leetcode6109. 知道秘密的人数(中等,周赛)
- Upgraded wechat tool applet source code for mobile phone detection - supports a variety of main traffic modes
- 杰理之开发板上电开机,就可以手机打开 NRF 的 APP【篇】
- SSM学习
- Setting and using richview trvstyle template style
- Thought map of data warehouse construction
- navicat如何导入MySQL脚本
- 杰理之普通透传测试---做数传搭配 APP 通信【篇】
- 【Hot100】739. Daily temperature
- On the world of NDK (2)
猜你喜欢

CDN acceleration and cracking anti-theft chain function

1091: two or three things in childhood (multi instance test)

WPF之MVVM

微信公众号无限回调授权系统源码 全网首发

The author is dead? AI is conquering mankind with art

19. Actual memory management of segment page combination

Detailed explanation | detailed explanation of internal mechanism of industrial robot

ROS learning_ Basics

First knowledge of OpenGL es learning (1)

Oracle数据库11gr2使用tde透明数据加密报错ora28353,如果运行关闭wallet会报错ora28365,运行打开wallet就报错ora28353无法打开wallet
随机推荐
Proteus -- Serial Communication parity flag mode
What is the biggest problem that fresh e-commerce is difficult to do now
Cif10 actual combat (resnet18)
mysql如何合并数据
Hydra common commands
Seriously recommend several machine learning official account
数字IC设计笔试题汇总(一)
ROS learning_ Basics
[daily question] 729 My schedule I
Interface automation test framework: pytest+allure+excel
杰理之BLE【篇】
杰理之如若需要大包发送,需要手机端修改 MTU【篇】
Multithreading and concurrent programming (2)
RichView TRVStyle 模板样式的设置与使用
Arduino tutorial - Simon games
Detailed explanation | detailed explanation of internal mechanism of industrial robot
杰理之BLE【篇】
Cookie技术&Session技术&ServletContext对象
TS基础篇
“无聊猿” BAYC 的内忧与外患