当前位置:网站首页>【线上问题处理】因代码造成mysql表死锁的问题,如何杀掉对应的进程
【线上问题处理】因代码造成mysql表死锁的问题,如何杀掉对应的进程
2022-07-06 07:11:00 【游戏编程】
同事 代码出了问题
Object savePoint = TransactionAspectSupport.currentTransactionStatus().createSavepoint();try{ //创建订单 agOrderRelationSwjList.forEach(e->{ //如果有记录 则删除原来的 //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("异常!");}上面故障代码里面 执行了删除,为什么导致锁表呢?事务没有提交?事务是自动提交的呀。。。 回头查查代码问题
先处理MYSQL
select * from information_schema.innodb_trx
里面的trx 是没有办法 kill掉的
可以show engine innodb status
拿到数据 在里面搜对应的trx_id
会找到 可以在 show processlist 中的对应的线程ID,这样就可以 kill
本次故障的事务线程ID 就是194788882,可以看到 信息还是非常全面的

作者:方东信
游戏编程,一个游戏开发收藏夹~
如果图片长时间未显示,请使用Chrome内核浏览器。
边栏推荐
- PCL realizes frame selection and clipping point cloud
- 【Hot100】739. 每日溫度
- Cookie技术&Session技术&ServletContext对象
- How are the open source Netease cloud music API projects implemented?
- Development of entity developer database application
- [server data recovery] case of offline data recovery of two hard disks of IBM server RAID5
- First knowledge of OpenGL es learning (1)
- Missing monitoring: ZABBIX monitors the status of Eureka instance
- Leetcode35. search the insertion position (simple, find the insertion position, different writing methods)
- Uncaught TypeError: Cannot red propertites of undefined(reading ‘beforeEach‘)解决方案
猜你喜欢

L'auteur est mort? Ai utilise l'art pour conquérir l'humanité

MPLS experiment

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

Top test sharing: if you want to change careers, you must consider these issues clearly!

Blue Bridge Cup zero Foundation National Championship - day 20

mysql如何合并数据

Cookie Technology & session Technology & ServletContext object

How to find a medical software testing institution? First flight software evaluation is an expert

18.多级页表与快表

leetcode59. 螺旋矩阵 II(中等)
随机推荐
【服务器数据恢复】IBM服务器raid5两块硬盘离线数据恢复案例
Lesson 12 study notes 2022.02.11
19.段页结合的实际内存管理
3. Business and load balancing of high architecture
Wechat official account infinite callback authorization system source code, launched in the whole network
Setting and using richview trvstyle template style
L'auteur est mort? Ai utilise l'art pour conquérir l'humanité
指尖上的 NFT|在 G2 上评价 Ambire,有机会获得限量版收藏品
Three methods of adding color to latex text
UWA Pipeline 2.2.1 版本更新说明
win10 64位装三菱PLC软件出现oleaut32.dll拒绝访问
OpenGL ES 学习初识(1)
NFT on fingertips | evaluate ambire on G2, and have the opportunity to obtain limited edition collections
LeetCode Algorithm 2181. 合并零之间的节点
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Uni app practical project
UWA pipeline version 2.2.1 update instructions
Upgraded wechat tool applet source code for mobile phone detection - supports a variety of main traffic modes
中青看点阅读新闻
树莓派串口登录与SSH登录方法