【mysql MTR】MTR's internal check of the test case 'xxx' failed的解决方法
(1)报错信息如下
[root@dev mysql-test]# ./mtr --suite=tianmu dropdb.test --force
Logging: ./mtr --suite=tianmu dropdb.test --force
MySQL Version 5.7.36
Checking supported features...
- SSL connections supported
Collecting tests...
Checking leftover processes...
Removing old var directory...
Creating var directory '/data/stonedb57/install/mysql-test/var'...
Installing system database...
Using parallel: 1
==============================================================================
TEST RESULT TIME (ms) or COMMENT
--------------------------------------------------------------------------
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
worker[1] mysql-test-run: WARNING: running this script as _root_ will cause some tests to be skipped
[ 50%] tianmu.dropdb [ pass ] 16
#############报错信息如下###############
MTR's internal check of the test case 'tianmu.dropdb' failed.
This means that the test case does not preserve the state that existed
before the test case was executed. Most likely the test case did not
do a proper clean-up. It could also be caused by the previous test run
by this thread, if the server wasn't restarted.
This is the diff of the states of the servers before and after the
test case was executed:
mysqltest: Logging to '/data/stonedb57/install/mysql-test/var/tmp/check-mysqld_1.log'.
mysqltest: Results saved in '/data/stonedb57/install/mysql-test/var/tmp/check-mysqld_1.result'.
mysqltest: Connecting to server localhost:13000 (socket /data/stonedb57/install/mysql-test/var/tmp/mysqld.1.sock) as 'root', connection 'default', attempt 0 ...
mysqltest: ... Connected.
mysqltest: Start processing test commands from './include/check-testcase.test' ...
mysqltest: ... Done processing test commands.
Binary files /data/stonedb57/install/mysql-test/var/tmp/check-mysqld_1.result and /data/stonedb57/install/mysql-test/var/tmp/check-mysqld_1.reject differ
mysqltest: Result content mismatch
not ok
safe_process[31443]: Child process: 31444, exit: 1
[100%] shutdown_report [ pass ]
--------------------------------------------------------------------------
The servers were restarted 0 times
Spent 0.016 of 19 seconds executing testcases
Check of testcase failed for: tianmu.dropdb
Completed: All 2 tests were successful.
(2)问题分析
根据自己的判定,这些内容应全部执行成功,但是在运行的时候出现了如上的报错,经过分析得出结果:
一般情况下mtr是启动自己的MySQL服务来进行测试,如果在启动时指定参数—extern,则可以使用指定的MySQL服务进行测试;
(3)解决方法
在运行的脚本中添加上自己数据库的服务器相关信息,即可看到运行成功
./mtr --extern host=192.168.30.45 --extern port=3306 --extern user=root --extern password="123456" --suite=tianmu --force dropdb.test
得出结果如下,可看到问题已被解决
Logging: ./mtr --extern host=192.168.30.45 --extern port=3306 --extern user=root --extern password=123456 --suite=tianmu --force dropdb.test mysql: [Warning] Using a password on the command line interface can be insecure. MySQL Version 5.7.36 Checking supported features... - SSL connections supported Collecting tests... Using parallel: 1 ============================================================================== TEST RESULT TIME (ms) or COMMENT -------------------------------------------------------------------------- worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 worker[1] mysql-test-run: WARNING: running this script as _root_ will cause some tests to be skipped [ 50%] tianmu.dropdb [ pass ] 17 [100%] shutdown_report [ pass ] -------------------------------------------------------------------------- The servers were restarted 0 times Spent 0.017 of 1 seconds executing testcases Completed: All 2 tests were successful.
1.作者:Syw 2.出处:http://www.cnblogs.com/syw20170419/ 3.本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 4.如果文中有什么错误,欢迎指出。以免更多的人被误导。 |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2019-09-14 Mac下安装SQLmap的安装
2018-09-14 Git-------常用操作记录