diff options
author | Monty <monty@mariadb.org> | 2016-01-03 13:27:59 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2016-01-03 13:27:59 +0200 |
commit | 8fcc0bfefadcb4e9f7acb13d11661daeea5097f9 (patch) | |
tree | 4863ff0cd610e325e29ce48cfa36dc954c8d046f /mysql-test/extra | |
parent | 661a6d89065390ca1e9b4be05219b75f850ed290 (diff) | |
download | mariadb-git-8fcc0bfefadcb4e9f7acb13d11661daeea5097f9.tar.gz |
Fixed bug in semi_sync replication tests.
The problem was that wait_for_slave_io_to_start reported that the io thread
was ready, when it was still initializing. This caused test suite to
continue too early, for example before the semi sync plugin was properly
enabled.
Fixed by introducing a new internal stage: "Preparing". Slave_IO_Running is
now set to "Yes" only when all initializing is done and the IO thread is
ready to read things from the master.
The only test affected by this change is rpl_flsh_tbls, which got stuck in
the preparing phase while trying to read the GTID position from a table.
Fixed by having this test waiting for Preparing instead of Yes.
Diffstat (limited to 'mysql-test/extra')
-rw-r--r-- | mysql-test/extra/rpl_tests/rpl_flsh_tbls.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mysql-test/extra/rpl_tests/rpl_flsh_tbls.test b/mysql-test/extra/rpl_tests/rpl_flsh_tbls.test index 5cbda2d591f..a8cec3d2a1a 100644 --- a/mysql-test/extra/rpl_tests/rpl_flsh_tbls.test +++ b/mysql-test/extra/rpl_tests/rpl_flsh_tbls.test @@ -45,7 +45,13 @@ drop table t1; connection slave; flush tables with read lock; start slave; -source include/wait_for_slave_to_start.inc; + +# The IO thread will not be able to read the GTID because of flush tables +let $slave_param= Slave_IO_Running; +let $slave_param_value= Preparing; +source include/wait_for_slave_param.inc; + +--source include/wait_for_slave_sql_to_start.inc --error 1192 stop slave; |