当前位置:网站首页>Fault analysis | federated storage engine table causes the monitoring thread to be in the opening table state
Fault analysis | federated storage engine table causes the monitoring thread to be in the opening table state
2022-04-21 17:03:00 【Aikesheng open source community】
author : Peng Bo Li
Love can be born DBA Team members , Mainly responsible for MySQL Troubleshooting and SQL Audit optimization . A commitment to technology , Be responsible for the customer .
In this paper, the source : Original contribution
* Produced by aikesheng open source community , Original content is not allowed to be used without authorization , For reprint, please contact the editor and indicate the source .
--
Recently found a customer's one MySQL 5.7.32 The monitoring thread state of the instance has been in Opening table state , And it's all right information_schema.tables Table to do related queries , Pictured :
adopt show open tables ; Statement discovery opened tables Not too much :
The relevant parameters are not unreasonable :
although ulimit The setting is not very big , But it won't have any impact
see MySQL Error There are no exceptions found in the log .
So you can only use pstack Tool pair MySQL Stack for analysis , The stack log is as follows :
By analyzing the stack log, it is found that , When the problem occurs, the query will use Federated The storage engine table queries the remote instance .
View database usage Federated The table that stores the engine , I found that two tables used Federated Storage engine :
By on the instance server Telnet Feferated Instance of the server IP And port discovery don't work :
So I guess the reason for the problem is : Monitoring thread in query information_schema.tables Table time , When you need to get Federated When storing the information of the engine table, you need to connect to the remote server Server , When you can't connect due to network or other reasons , This will cause the local monitoring thread to be in Opening table state .
Next, we design experiments to verify our ideas :
- Enable Federated Storage engine
- Create a Federated The table that stores the engine , Connected server non-existent
- Inquire about information_schema.tables surface , Thread stuck
- Thread state is in Opening table state
This just proves that our idea is correct .
版权声明
本文为[Aikesheng open source community]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211658084961.html
边栏推荐
- FastReport Business Graphics .NET
- 30. 构造方法的重载
- Win10桥接网卡使得qemu虚拟机可以正常访问网络
- R语言使用Hmisc包的label函数为dataframe中的特定变量(数据列)添加变量标签、将dataframe的数据列名称修改为数据说明标签、而通过数值索引访问dataframe数据列
- 1、 Overview of database system of database Series
- 2022 新风口!IT 人群考证潮来啦!!!
- 机器学习吴恩达课程总结(二)
- /etc/passwd的利用
- IvorySQL亮相于PostgresConf SV 2022 硅谷Postgres大会
- Do you need to set the socket to non blocking when using epoll?
猜你喜欢

824. Goat Latin

机器学习吴恩达课程总结(五)

.NET宝藏API之:IHostedService,后台任务执行

MySQL查询语句关键字执行的优先级问题

Win10 bridging network card enables QEMU virtual machine to access the network normally

LS - Al meaning of each field

Database Principle -- library management system

Interpretation of a paper that points out the small errors in the classic RMS proof process

The first five chapters are thought maps
![[an article helps you lay a good foundation for routing]](/img/3d/1c0329c39c0c5282db841db970a060.png)
[an article helps you lay a good foundation for routing]
随机推荐
Using Jetson nano as an environmental weather station
mysql主键id自定义
把握住这5点!在职考研也能上岸!
机器学习吴恩达课程总结(一)
幹貨 | 實戰演練基於加密接口測試測試用例設計
R语言使用grepl函数检查子字符串是否存在于指定的字符串中、字符串匹配,负责搜索给定字符串对象中是否包含特定表达式
Conception d'un cas d'essai basé sur l'interface de chiffrement pour le forage pratique de marchandises sèches
【一篇文章帮你打好路由基础】
MySQL sets 2 primary keys
Win10 bridging network card enables QEMU virtual machine to access the network normally
优炫数据库中标北京市应急管理部消防产品合格评定中心项目
微机原理与接口技术——电子琴实验报告
The R language uses the grepl function to check whether the substring exists in the specified string and the string matches. It is responsible for searching whether the given string object contains a
Sqli labs 23-25a breakthrough experience and ideas
30. 构造方法的重载
R language uses cor function to calculate the correlation coefficient between multiple numerical data columns in dataframe and the rank correlation coefficient of Kendall's tau nonparametric
Summary of Wu Enda's course of machine learning (II)
Domain information query tool adfind
29. There are 1, 2, 3 and 4 numbers. How many three digits that are different from each other and have no duplicate numbers
[newcode] cattle team competition