mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Make events_restart more stable by waiting for the server to be stopped before starting it again
This commit is contained in:
@ -1,13 +1,21 @@
|
||||
|
||||
# Write file to make mysql-test-run.pl expect crash and restart
|
||||
# Write file to make mysql-test-run.pl expect the "crash", but don't start
|
||||
# it until it's told to
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
restart
|
||||
wait
|
||||
EOF
|
||||
|
||||
# Send shutdown to the connected server and give
|
||||
# it 10 seconds to die before zapping it
|
||||
shutdown_server 10;
|
||||
|
||||
# Check server is gone
|
||||
--source include/wait_until_disconnected.inc
|
||||
|
||||
# Write file to make mysql-test-run.pl start up the server again
|
||||
--append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
restart
|
||||
EOF
|
||||
|
||||
# Turn on reconnect
|
||||
--enable_reconnect
|
||||
|
Reference in New Issue
Block a user