Skip to content

Commit 742e16a

Browse files
committed
Bug#37377888: rpl_relay_log_space_limit_half_logged_transaction.test fails with STA and compression
The test rpl_relay_log_space_limit_half_logged_transaction was not prepared to run with single thread replication and compression. We disable the test for single thread replication. We fix the test so it runs with compression. Change-Id: Ib7044840a0b62e884938b8904a0be5a75be59b8c
1 parent 6111432 commit 742e16a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mysql-test/suite/rpl_gtid/r/rpl_relay_log_space_limit_half_logged_transaction.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ INSERT INTO test.t1 (c2) VALUES (REPEAT('a', 1000000));
2020
INSERT INTO test.t1 (c2) VALUES (REPEAT('b', 1000000));
2121
COMMIT;
2222
[connection slave]
23-
include/rpl_receive_event_count.inc [stop after 4 non-header events]
23+
include/rpl_receive_event_count.inc
2424

2525
##############################################################
2626
# 3. Restart the replica with a limit to the relay log size

mysql-test/suite/rpl_gtid/t/rpl_relay_log_space_limit_half_logged_transaction.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
--source include/have_debug.inc
2828
--source include/have_debug_sync.inc
2929
--source include/have_binlog_format_row.inc
30+
--source include/only_mts_replica_parallel_workers.inc
3031
--source include/master-slave.inc
3132

3233
--echo
@@ -57,6 +58,11 @@ COMMIT;
5758

5859
--let $rpl_after_received_events_action= stop
5960
--let $rpl_event_count= 4
61+
--let $rpl_skip_event_count_print_in_result_log= 1
62+
if (`SELECT @@session.binlog_transaction_compression = TRUE`)
63+
{
64+
--let $rpl_event_count= 3
65+
}
6066
--source include/rpl_receive_event_count.inc
6167

6268
--echo

0 commit comments

Comments
 (0)