当前位置:网站首页>【StoneDB故障诊断】MDL锁等待
【StoneDB故障诊断】MDL锁等待
2022-07-27 19:19:00 【51CTO】
虽然StoneDB不支持事务,但如果显示开启事务,并且没有及时提交或者回滚事务,这时候申请的MDL读锁是没有释放的。如果另一个线程执行对这张表的DDL操作就会被阻塞(这是因为DDL操作要申请MDL写锁,写锁与读锁互斥),此时刚好对这张表有并发的查询和更新,那么这些线程都会被阻塞,如果不及时找到阻塞者,很容易将连接数打满。 如果开启了performance_schema,可以使用以下SQL找到阻塞者。
如果没有开启performance_schema,且是5.7版本,可以使用以下SQL找到阻塞者。
本文由博客一文多发平台 OpenWrite 发布!
边栏推荐
- MySQL execution process and order
- 对象在内存中存在形式&内存分配机制
- Will the United States prohibit all Chinese enterprises from purchasing American chips? Trump responded like this
- The gratitude and resentment between the four swordsmen and code review: "abandon all chaos" to "prodigal son returns"
- [numerical analysis exercise] numerical integration (complex trapezoid, complex Simpson, Romberg integral) C with STL implementation
- Open source data quality solution -- Apache Griffin primer
- Simple use of enum
- 一口气学完 Redis 集群方案
- 技术管理 - 一定要抓大放小
- [numerical analysis exercise] Jacobi iteration method of third-order matrix
猜你喜欢

Why use MQ message oriented middleware? These questions must be solved
![[question 24] logic closed loop (Beijing Institute of Technology / Beijing University of Technology / programming methods and practice / primary school)](/img/c4/71a9933a3a1fdd14f84a41b640f5b5.jpg)
[question 24] logic closed loop (Beijing Institute of Technology / Beijing University of Technology / programming methods and practice / primary school)

C language output teaching calendar

day 1 - day 4

IDEA常用快捷键及设置方法

How to customize logging of.Net6.0

Pytoch distributed training

In addition to "adding machines", in fact, your micro service can be optimized like this

The gratitude and resentment between the four swordsmen and code review: "abandon all chaos" to "prodigal son returns"

2022 2nd cyber edge cup cyber security competition Web
随机推荐
如何实现一个好的知识管理系统?
Is it safe to open an account online now? Then choose which securities to open a securities account
@Autowired注解与@Resource注解的区别
Qt取出输入框字符串,lineEdit
More than 100 lines should be split into functions
V2.x synchronization is abnormal. There are a lot of posts that cannot be synchronized in the cloud, and the synchronization is blocked and slow
成员方法及其传参机制
技术管理 - 一定要抓大放小
LM NAV: robot navigation method based on large models of language, vision and behavior
First zhanrui 5g chip! Exposure of Hisense F50, a pure domestic 5g mobile phone: equipped with Huben T710 + chunteng 510
紫光展锐:2020年将有数十款基于春藤510的5G终端商用
Analysis of STL source code
2021-11-05理解main方法语法、代码块及final关键字
Tencent cloud [hiflow] | automation --------- hiflow: still copying and pasting?
Ziguang zhanrui: dozens of 5g terminals based on chunteng 510 will be commercially available in 2020
Log4j vulnerability is still widespread and continues to cause impact
怎么还有人问 MySQL 是如何归档数据的呢?
学完4种 Redis 集群方案要多久?我一口气给你说完
每条你收藏的资讯背后,都离不开TA
Huawei establishes global ecological development department: fully promote HMS global ecological construction