mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
cf9038e979
fails randomly. The problem was that the test case used command line tool (mysql) without specifying connect_timeout argument. In some cases, this lead to hanging of the test case. The fix is to specify --connect_timeout=1 when starting mysql. Also, the patch contains polishing and various cleanups to simplify analyzing of the problems further. The patch affects only test suite, no server codebase has been touched. mysql-test/lib/mtr_im.pl: Remember PID of the IM-spawner -- a process, that is used to fork IM-angel. mysql-test/lib/mtr_io.pl: Trim \n from the PID. mysql-test/lib/mtr_process.pl: Don't complain if it was IM-spawner, who died. mysql-test/r/im_daemon_life_cycle.result: Update the result file. mysql-test/r/im_life_cycle.result: Update the result file. mysql-test/t/im_daemon_life_cycle.imtest: Polishing: add more comments, be more verbose. mysql-test/t/im_life_cycle.imtest: Polishing: be more verbose. mysql-test/t/im_utils.imtest: Polishing: be more verbose. mysql-test/t/kill_n_check.sh: Log messages to the extrenal file so that they can be analyzed if test case failed. mysql-test/t/wait_for_process.sh: Log messages to the extrenal file so that they can be analyzed if test case failed. mysql-test/t/wait_for_socket.sh: Log messages to the extrenal file so that they can be analyzed if test case failed. mysql-test/t/log.sh: Dummy script to facilitate logging from test-scripts. mysql-test/t/utils.sh: A bunch of auxilary functions to facilitate logging.
73 lines
2.7 KiB
Text
73 lines
2.7 KiB
Text
SHOW VARIABLES LIKE 'server_id';
|
|
Variable_name Value
|
|
server_id 1
|
|
SHOW INSTANCES;
|
|
instance_name status
|
|
mysqld1 online
|
|
mysqld2 offline
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.2.
|
|
--------------------------------------------------------------------
|
|
START INSTANCE mysqld2;
|
|
Success: the process has been started.
|
|
SHOW VARIABLES LIKE 'port';
|
|
Variable_name Value
|
|
port IM_MYSQLD2_PORT
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.3.
|
|
--------------------------------------------------------------------
|
|
STOP INSTANCE mysqld2;
|
|
Success: the process has been stopped.
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.4.
|
|
--------------------------------------------------------------------
|
|
START INSTANCE mysqld3;
|
|
ERROR HY000: Bad instance name. Check that the instance with such a name exists
|
|
START INSTANCE mysqld1;
|
|
ERROR HY000: The instance is already started
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.5.
|
|
--------------------------------------------------------------------
|
|
STOP INSTANCE mysqld3;
|
|
ERROR HY000: Bad instance name. Check that the instance with such a name exists
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.6.
|
|
--------------------------------------------------------------------
|
|
Killing the process...
|
|
Waiting...
|
|
Success: the process was restarted.
|
|
SHOW INSTANCES;
|
|
instance_name status
|
|
mysqld1 online
|
|
mysqld2 offline
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.7.
|
|
--------------------------------------------------------------------
|
|
START INSTANCE mysqld2;
|
|
Success: the process has been started.
|
|
Killing the process...
|
|
Waiting...
|
|
Success: the process was killed.
|
|
|
|
--------------------------------------------------------------------
|
|
-- 1.1.8.
|
|
--------------------------------------------------------------------
|
|
SHOW INSTANCE STATUS;
|
|
ERROR 42000: You have an error in your command syntax. Check the manual that corresponds to your MySQL Instance Manager version for the right syntax to use
|
|
|
|
--------------------------------------------------------------------
|
|
-- BUG#12813
|
|
--------------------------------------------------------------------
|
|
START INSTANCE mysqld1,mysqld2,mysqld3;
|
|
ERROR 42000: You have an error in your command syntax. Check the manual that corresponds to your MySQL Instance Manager version for the right syntax to use
|
|
STOP INSTANCE mysqld1,mysqld2,mysqld3;
|
|
ERROR 42000: You have an error in your command syntax. Check the manual that corresponds to your MySQL Instance Manager version for the right syntax to use
|
|
STOP INSTANCE mysqld2;
|
|
ERROR HY000: Cannot stop instance. Perhaps the instance is not started, or was started manually, so IM cannot find the pidfile.
|
|
End of 5.0 tests
|