From deb24da94df2547f3689359a34d1663d8a77eaa1 Mon Sep 17 00:00:00 2001 From: Varun Nagaraju Date: Tue, 5 Aug 2025 16:17:09 +0530 Subject: [PATCH] Bug#37024069 Fixes rpl_semi_sync_binlog_suffix_exceed_six_digit MTR test The INSERT statement which is used to check the active replication type is performed on the master now, instead of the slave. --- .../r/rpl_semi_sync_binlog_suffix_exceed_six_digit.result | 4 ++-- .../t/rpl_semi_sync_binlog_suffix_exceed_six_digit.test | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mysql-test/suite/rpl_nogtid/r/rpl_semi_sync_binlog_suffix_exceed_six_digit.result b/mysql-test/suite/rpl_nogtid/r/rpl_semi_sync_binlog_suffix_exceed_six_digit.result index 1a2e09613a7..142bd98ee30 100644 --- a/mysql-test/suite/rpl_nogtid/r/rpl_semi_sync_binlog_suffix_exceed_six_digit.result +++ b/mysql-test/suite/rpl_nogtid/r/rpl_semi_sync_binlog_suffix_exceed_six_digit.result @@ -50,12 +50,12 @@ include/stop_slave.inc # after a sleep of 1 second. The source will commit after the # rpl_semi_sync_source_timeout. # -[connection slave] +[connection master] INSERT INTO t2 VALUES ('a'); [connection master1] include/assert.inc [Row count has not been updated] include/assert.inc [Status variable Rpl_semi_sync_yes_tx is unchanged] -[connection slave] +[connection master] # # 7. Start the replica # diff --git a/mysql-test/suite/rpl_nogtid/t/rpl_semi_sync_binlog_suffix_exceed_six_digit.test b/mysql-test/suite/rpl_nogtid/t/rpl_semi_sync_binlog_suffix_exceed_six_digit.test index 04fbcf4fbc3..04d3fdec87b 100644 --- a/mysql-test/suite/rpl_nogtid/t/rpl_semi_sync_binlog_suffix_exceed_six_digit.test +++ b/mysql-test/suite/rpl_nogtid/t/rpl_semi_sync_binlog_suffix_exceed_six_digit.test @@ -98,7 +98,7 @@ INSERT INTO t2 VALUES (REPEAT("a", 4096)); --echo # after a sleep of 1 second. The source will commit after the --echo # rpl_semi_sync_source_timeout. --echo # ---source include/rpl_connection_slave.inc +--source include/rpl_connection_master.inc --let $row_count_before= `SELECT COUNT(*) FROM t2` --let $yes_tx_before = query_get_value(SHOW STATUS LIKE 'Rpl_semi_sync_yes_tx', Value, 1) @@ -123,7 +123,7 @@ INSERT INTO t2 VALUES (REPEAT("a", 4096)); --let $assert_cond = "$yes_tx_before" = "$yes_tx_after" --source include/assert.inc ---source include/rpl_connection_slave.inc +--source include/rpl_connection_master.inc --reap; --echo # -- 2.43.0