diff options
author | Sachin <sachinsetia1001@gmail.com> | 2020-09-11 15:27:58 +0100 |
---|---|---|
committer | Sachin <sachinsetia1001@gmail.com> | 2020-09-11 15:35:32 +0100 |
commit | c3a3b4596c9e1c922afb00b4222c6496535f0f40 (patch) | |
tree | 0a27d9866a4da617f19028d6d9229c7780a5b9b8 /mysql-test | |
parent | a8f6bbb7a804472f1a8f08b6f05b456c265c9a6c (diff) | |
download | mariadb-git-c3a3b4596c9e1c922afb00b4222c6496535f0f40.tar.gz |
MDEV-17438 rpl.show_status_stop_slave_race-7126 fails with timeout on Windows
Problem:- Test case uses socket which does not work on windows, So mysqlslap
falls back to default connection which is defined in my.cnf and connects
to master instead of slave. Since start slave/stop slave is executed on
master we get error MASTER_HOST was not set
Solution:- Use Port instead of socket
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test b/mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test index 38759c9b16a..b43de60738e 100644 --- a/mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test +++ b/mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test @@ -7,7 +7,7 @@ # If everything is okay, the test will end in several seconds; maybe a minute. # If the problem shows up, it will hang until testcase timeout is exceeded. ---exec $MYSQL_SLAP --silent --socket=$SLAVE_MYSOCK -q "START SLAVE; STOP SLAVE; SHOW GLOBAL STATUS" -c 2 --number-of-queries=100 --create-schema=test +--exec $MYSQL_SLAP --silent --host=127.0.0.1 -P $SLAVE_MYPORT -q "START SLAVE; STOP SLAVE; SHOW GLOBAL STATUS" -c 2 --number-of-queries=100 --create-schema=test # All done. |