Commit 826d7c68 authored by Kristian Nielsen's avatar Kristian Nielsen

MDEV-7342: Test failure in perfschema.setup_instruments_defaults

Fix a possible race in the test case when restarting the server.

Make sure we have disconnected before waiting for the reconnect
that signals that the server is back up. Otherwise, we may in
rare cases continue the test while the old server is shutting
down, eventually leading to "connection lost" failure.
parent fc1a7055
......@@ -60,6 +60,8 @@ WHERE name like "%wait/io/table/sql/handler%";
--echo #
--echo # Stop server
--send_shutdown
--source include/wait_until_disconnected.inc
--echo # Restart server with wait/io/table/sql/handler disabled
--exec echo "restart:--loose-performance-schema-instrument=%wait/io/table/sql/%=off" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment