summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin <sachinsetia1001@gmail.com>2020-09-11 15:27:58 +0100
committerSachin <sachinsetia1001@gmail.com>2020-09-11 15:27:58 +0100
commit66126fc99c87b5e7673eeddce962dee4fef29340 (patch)
tree0a27d9866a4da617f19028d6d9229c7780a5b9b8
parenta8f6bbb7a804472f1a8f08b6f05b456c265c9a6c (diff)
downloadmariadb-git-bb-10.1-sachin.tar.gz
MDEV-17438 rpl.show_status_stop_slave_race-7126 fails with timeout on Windowsbb-10.1-sachin
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 is connection to master. Since start slave/stop slave is executed on master we get error MASTER_HOST was not set Solution:- Use Port instead of socket
-rw-r--r--mysql-test/suite/rpl/t/show_status_stop_slave_race-7126.test2
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.