当前位置:网站首页>[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 .
边栏推荐
- The psychological process from autojs to ice fox intelligent assistance
- LeetCode 78:子集
- #systemverilog# 可綜合模型的結構總結
- Establishment and operation of cloud platform open source project environment
- 编译,连接 -- 笔记 -2
- Multithreading and concurrent programming (2)
- Missing monitoring: ZABBIX monitors the status of Eureka instance
- Misc of BUU (update from time to time)
- 3. Business and load balancing of high architecture
- SSM学习
猜你喜欢
Depth residual network
Proteus -- Serial Communication parity flag mode
[daily question] 729 My schedule I
Cookie Technology & session Technology & ServletContext object
Uncaught TypeError: Cannot red propertites of undefined(reading ‘beforeEach‘)解决方案
JDBC学习笔记
作者已死?AI正用藝術征服人類
Win10 64 bit Mitsubishi PLC software appears oleaut32 DLL access denied
JDBC learning notes
A brief introduction of reverseme in misc in the world of attack and defense
随机推荐
Oracle database 11gr2 uses TDE transparent data encryption to report an error ora28353. If you run to close the wallet, you will report an error ora28365. If you run to open the wallet, you will repor
Setting and using richview trvstyle template style
leetcode35. 搜索插入位置(简单,找插入位置,不同写法)
Bio model realizes multi person chat
杰理之需要修改 gatt 的 profile 定义【篇】
Seriously recommend several machine learning official account
[server data recovery] case of offline data recovery of two hard disks of IBM server RAID5
L'auteur est mort? Ai utilise l'art pour conquérir l'humanité
杰理之BLE【篇】
First knowledge of OpenGL es learning (1)
【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
Simple and understandable high-precision addition in C language
微信公众号无限回调授权系统源码 全网首发
[daily question] 729 My schedule I
TS基础篇
Résumé de la structure du modèle synthétisable
Cookie技术&Session技术&ServletContext对象
Arduino tutorial - Simon games
Uncaught typeerror: cannot red properties of undefined (reading 'beforeeach') solution
杰理之BLE【篇】