diff --git a/mysql-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result b/mysql-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result index a8e158a25e4..3048b6b5635 100644 --- a/mysql-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result +++ b/mysql-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result @@ -505,8 +505,8 @@ disconnect con1; connection default; connection con2; SHUTDOWN WAIT FOR ALL SLAVES; -connection server_2; -include/assert_grep.inc [Ensure the primary waited for the ACK of the killed thread] +# Ensure the primary waited for the ACK of the killed thread +FOUND 5 /Delaying shutdown to await semi-sync ACK/ in mysqld.1.err connection default; connection server_1; connection server_2; diff --git a/mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test b/mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test index c321f2bf72f..4ed9ca0aa7c 100644 --- a/mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test +++ b/mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test @@ -206,7 +206,6 @@ SET GLOBAL debug_dbug="+d,simulate_delay_semisync_slave_reply"; --echo # Wait for thd to begin semi-sync wait.. --let $wait_condition= SELECT COUNT(*) = 1 FROM information_schema.processlist WHERE state = 'Waiting for semi-sync ACK from slave' --source include/wait_condition.inc ---source include/wait_condition.inc --echo # ..done --disconnect con1 @@ -220,15 +219,10 @@ EOF SHUTDOWN WAIT FOR ALL SLAVES; --source include/wait_until_disconnected.inc -# Run assert_grep on server_2 as it uses SQL commands for verification, but -# server_1 has gone away ---connection server_2 ---let $assert_text= Ensure the primary waited for the ACK of the killed thread ---let $assert_select= Delaying shutdown to await semi-sync ACK ---let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.err ---let $assert_count= 5 ---let $assert_only_after=CURRENT_TEST ---source include/assert_grep.inc +--echo # Ensure the primary waited for the ACK of the killed thread +--let $SEARCH_PATTERN= Delaying shutdown to await semi-sync ACK +--let $SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err +--source include/search_pattern_in_file.inc --connection default --source include/wait_until_disconnected.inc