Skip to content

Commit

Permalink
MDEV-7342: Test failure in perfschema.setup_instruments_defaults
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
knielsen committed Dec 18, 2014
1 parent fc1a705 commit 826d7c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql-test/suite/perfschema/t/setup_instruments_defaults.test
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 826d7c6

Please sign in to comment.