当前位置:网站首页>[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 .
边栏推荐
- Jerry needs to modify the profile definition of GATT [chapter]
- C language_ Double create, pre insert, post insert, traverse, delete
- leetcode704. 二分查找(查找某个元素,简单,不同写法)
- Supervisor usage document
- JDBC学习笔记
- LeetCode Algorithm 2181. Merge nodes between zero
- 18. Multi level page table and fast table
- 网络安全基础介绍
- Missing monitoring: ZABBIX monitors the status of Eureka instance
- A brief introduction of reverseme in misc in the world of attack and defense
猜你喜欢
First knowledge of OpenGL es learning (1)
杰理之如若需要大包发送,需要手机端修改 MTU【篇】
mysql如何合并数据
1189. Maximum number of "balloons"
Go learning --- use reflection to judge whether the value is valid
【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
A brief introduction of reverseme in misc in the world of attack and defense
作者已死?AI正用藝術征服人類
Seriously recommend several machine learning official account
The first Baidu push plug-in of dream weaving fully automatic collection Optimization SEO collection module
随机推荐
leetcode59. 螺旋矩阵 II(中等)
升级版手机检测微信工具小程序源码-支持多种流量主模式
LeetCode Algorithm 2181. 合并零之间的节点
C - Inheritance - hidden method
微信脑力比拼答题小程序_支持流量主带最新题库文件
Path analysis model
Uni app practical project
Fast target recognition based on pytorch and fast RCNN
The best way to learn SEO: search engine
Misc of BUU (update from time to time)
chrome查看页面fps
Leetcode59. spiral matrix II (medium)
[JDBC] quick start tutorial
Cookie技术&Session技术&ServletContext对象
杰理之BLE【篇】
C语言 简单易懂的高精度加法
Introduction to ros2 installation and basic knowledge
BIO模型实现多人聊天
杰理之需要修改 gatt 的 profile 定义【篇】
[hot100] 739. Température quotidienne