当前位置:网站首页>[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 .
边栏推荐
- #systemverilog# 可综合模型的结构总结
- Depth residual network
- leetcode704. Binary search (find an element, simple, different writing)
- Fast target recognition based on pytorch and fast RCNN
- C language_ Double create, pre insert, post insert, traverse, delete
- 巴比特 | 元宇宙每日必读:中国互联网企业涌入元宇宙的群像:“只有各种求生欲,没有前瞻创新的雄心”...
- Raspberry pie 3B update VIM
- 杰理之BLE【篇】
- 【mysql学习笔记29】触发器
- “无聊猿” BAYC 的内忧与外患
猜你喜欢

微信脑力比拼答题小程序_支持流量主带最新题库文件

leetcode35. 搜索插入位置(简单,找插入位置,不同写法)

navicat如何导入MySQL脚本

How are the open source Netease cloud music API projects implemented?

Proteus -- Serial Communication parity flag mode

升级版手机检测微信工具小程序源码-支持多种流量主模式

Supporting title of the book from 0 to 1: ctfer's growth road (Zhou Geng)

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

CDN acceleration and cracking anti-theft chain function

Kubernetes cluster builds ZABBIX monitoring platform
随机推荐
Week6 weekly report
L'auteur est mort? Ai utilise l'art pour conquérir l'humanité
“无聊猿” BAYC 的内忧与外患
首发织梦百度推送插件全自动收录优化seo收录模块
BIO模型实现多人聊天
数据仓库建设思维导图
OpenJudge NOI 2.1 1661:Bomb Game
变量的命名规则十二条
杰理之BLE【篇】
Fast target recognition based on pytorch and fast RCNN
Uncaught TypeError: Cannot red propertites of undefined(reading ‘beforeEach‘)解决方案
CDN acceleration and cracking anti-theft chain function
Uni app practical project
杰理之AD 系列 MIDI 功能说明【篇】
3. Business and load balancing of high architecture
Librosa audio processing tutorial
Simple use of JWT
[hot100] 739. Température quotidienne
【mysql学习笔记29】触发器
数字IC设计笔试题汇总(一)