mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-23511 shutdown_server 10 times out, causing server kill at shutdown
Shutdown of mtr tests may be too impatient, esp on CI environment where 10 seconds of `arg` of `shutdown_server arg` may not be enough for the clean shutdown to complete. This is fixed to remove explicit non-zero timeout argument to `shutdown_server` from all mtr tests. mysqltest computes 60 seconds default value for the timeout for the argless `shutdown_server` command. This policy is additionally ensured with a compile time assert.
This commit is contained in:
@ -44,7 +44,7 @@ select @@global.Host_Cache_Size > 0;
|
||||
|
||||
let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
--exec echo "wait" > $restart_file
|
||||
--shutdown_server 10
|
||||
--shutdown_server
|
||||
--source include/wait_until_disconnected.inc
|
||||
-- exec echo "restart:--host_cache_size=1 " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
-- enable_reconnect
|
||||
@ -143,7 +143,7 @@ SELECT Host_Cache_Size = @@SESSION.Host_Cache_Size;
|
||||
|
||||
#let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
#--exec echo "wait" > $restart_file
|
||||
#--shutdown_server 10
|
||||
#--shutdown_server
|
||||
#--source include/wait_until_disconnected.inc
|
||||
#-- exec echo "restart:--bind-address=$bind_ip " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
#-- enable_reconnect
|
||||
|
Reference in New Issue
Block a user