mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
871378bc69
into alik.:/mnt/raid/alik/MySQL/devel/5.0-rt configure.in: Auto merged include/my_time.h: Auto merged mysql-test/r/func_time.result: Auto merged mysql-test/r/rename.result: Auto merged mysql-test/t/func_time.test: Auto merged mysql-test/t/im_daemon_life_cycle.imtest: Auto merged mysql-test/t/rename.test: Auto merged sql/item_timefunc.cc: Auto merged sql-common/my_time.c: Auto merged sql/time.cc: Auto merged
72 lines
2.2 KiB
Text
72 lines
2.2 KiB
Text
###########################################################################
|
|
#
|
|
# This file contains test for (1.2) test suite.
|
|
#
|
|
# Consult WL#2789 for more information.
|
|
#
|
|
###########################################################################
|
|
|
|
--source include/im_check_env.inc
|
|
|
|
# Turn on reconnect, not on by default anymore
|
|
--enable_reconnect
|
|
|
|
###########################################################################
|
|
|
|
# Kill the IM main process and check that the IM Angel will restart the main
|
|
# process.
|
|
|
|
--exec $MYSQL_TEST_DIR/t/kill_n_check.sh $IM_PATH_PID restarted 30
|
|
|
|
###########################################################################
|
|
|
|
# Wait for IM to start accepting connections.
|
|
|
|
--exec $MYSQL_TEST_DIR/t/wait_for_socket.sh $EXE_MYSQL $IM_PATH_SOCK $IM_USERNAME $IM_PASSWORD '' 30
|
|
|
|
###########################################################################
|
|
|
|
#
|
|
# BUG#12751: Instance Manager: client hangs
|
|
#
|
|
|
|
--echo
|
|
--echo --------------------------------------------------------------------
|
|
--echo -- Test for BUG#12751
|
|
--echo --------------------------------------------------------------------
|
|
|
|
# Give some time to begin accepting connections after restart.
|
|
# FIXME: race condition here.
|
|
|
|
--sleep 3
|
|
|
|
# 1. Start mysqld;
|
|
|
|
START INSTANCE mysqld2;
|
|
# FIXME: START INSTANCE should be synchronous.
|
|
--exec $MYSQL_TEST_DIR/t/wait_for_process.sh $IM_MYSQLD2_PATH_PID 30 started
|
|
|
|
# 2. Restart IM-main: kill it and IM-angel will restart it; wait for IM to
|
|
# start accepting connections again.
|
|
|
|
--exec $MYSQL_TEST_DIR/t/kill_n_check.sh $IM_PATH_PID restarted 30
|
|
|
|
--exec $MYSQL_TEST_DIR/t/wait_for_socket.sh $EXE_MYSQL $IM_PATH_SOCK $IM_USERNAME $IM_PASSWORD '' 30
|
|
|
|
# 3. Issue some statement -- connection should be re-established.
|
|
|
|
# Give some time to begin accepting connections after restart.
|
|
# FIXME: race condition here.
|
|
|
|
--sleep 3
|
|
|
|
--replace_column 3 VERSION
|
|
SHOW INSTANCE STATUS mysqld1;
|
|
|
|
# 4. Stop mysqld2, because it will not be stopped by IM, as it is nonguarded.
|
|
# So, if it we do not stop it, it will be stopped by mysql-test-run.pl with
|
|
# warning.
|
|
|
|
STOP INSTANCE mysqld2;
|
|
# FIXME: STOP INSTANCE should be synchronous.
|
|
--exec $MYSQL_TEST_DIR/t/wait_for_process.sh $IM_MYSQLD2_PATH_PID 30 stopped
|