Skip to content

Commit 7bbe5af

Browse files
committed
BUG#36882629: Unstable RPL tests - part 1
The following tests were updated to avoid them to fail on several combinations of server configurations. rpl_inconsistent_logical_timestamp_replica_parallel_workers Test is not prepared to run with GTID_MODE=ON, skip it on that configuration. rpl_mts_rec_crash_safe_small Test was running on a deprecated configuration, test was removed. rpl_relay_log_rotation_on_worker_failure Test must only run with replica_parallel_type=LOGICAL_CLOCK. rpl_xa_commit_fail_preceding_trx Test must only run with replica_parallel_type=LOGICAL_CLOCK and multiple parallel workers. rpl_log_info_repository_persistence_assign_gtids_to_anonymous_transactions rpl_log_info_repository_persistence_require_table_primary_key_check Tests had a incorrect assert. rpl_change_master_without_stopping_slave rpl_multi_source_init_failure rpl_mysqlbinlog_gtid_on rpl_rotate_gtid Test is not prepared to run with CHANGE REPLICATION SOURCE ... GTID_ONLY=1, skip it on that configuration. rpl_relay_log_space_limit_net_write_timeout rpl_stm_non_trans_mix_engine_warning Test is not prepared to run with CHANGE REPLICATION SOURCE ... PRIVILEGE_CHECKS_USER='user', skip it on that configuration. rpl_gtid_parallel_pitr Test was not doing a proper cleanup. Change-Id: I72f75edef417112da51da7b10d9cdba221f9e37f
1 parent 9e2aa93 commit 7bbe5af

16 files changed

+24
-998
lines changed

mysql-test/suite/rpl/r/rpl_log_info_repository_persistence_assign_gtids_to_anonymous_transactions.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ include/assert.inc [Check entry for default channel "" in mysql.slave_relay_log_
9595

9696
# 4. Cleanup
9797
CALL mtr.add_suppression("Error reading relay log configuration.");
98-
CALL mtr.add_suppression("Replica: Failed to initialize the connection metadata structure for channel ''; its record may still be present in the applier metadata repository, consider deleting it*");
98+
CALL mtr.add_suppression("Replica: Failed to initialize the connection metadata structure for channel ''; its record may still be present in the applier metadata repository, consider deleting it.");
9999
CALL mtr.add_suppression("Failed to create or recover replication info repositories.");
100100
CALL mtr.add_suppression("Replica SQL for channel '': Replica failed to initialize applier metadata structure from the repository,*");
101101
CALL mtr.add_suppression("Using ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS implies limitations on the replication topology*");

mysql-test/suite/rpl/r/rpl_mts_rec_crash_safe_small.result

Lines changed: 0 additions & 974 deletions
This file was deleted.

mysql-test/suite/rpl/t/rpl_change_master_without_stopping_slave.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@
3333
# WL#6120- Change master without stopping Slave threads.
3434
#
3535

36+
--source include/have_binlog_format_row.inc
37+
--source include/not_rpl_gtid_only.inc
3638
--let $rpl_privilege_checks_user_grant_option = 1
3739
--source include/rpl/set_privilege_checks_user_as_system_user.inc
3840
--source include/rpl/init_source_replica.inc
39-
--source include/have_binlog_format_row.inc
4041

4142
--echo
4243
--echo # Create a replication user to use in CHANGE REPLICATION SOURCE tests.

mysql-test/suite/rpl/t/rpl_inconsistent_logical_timestamp_replica_parallel_workers.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
--source include/big_test.inc
2929
--source include/have_debug.inc
3030
--source include/have_binlog_format_row.inc
31+
--source include/have_gtid_mode_off.inc
3132

3233
# This test needs at least 2 applier workers
3334
--let $option_name = replica_parallel_workers

mysql-test/suite/rpl/t/rpl_log_info_repository_persistence_assign_gtids_to_anonymous_transactions.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ UPDATE mysql.slave_relay_log_info SET Number_of_lines = 12;
197197

198198
--let $count = `SELECT COUNT(*) FROM performance_schema.replication_applier_configuration WHERE ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE = 'OFF'`
199199
--let $assert_text = Check the number of channels with ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE set to OFF
200-
--let $assert_cond = $count = 2 # The recovery channel wont appear unless we start GR
200+
--let $assert_cond = $count = 3
201201
--source include/assert.inc
202202

203203
--let $count = `SELECT COUNT(*) FROM mysql.slave_relay_log_info WHERE ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_TYPE = 'OFF' AND ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS_VALUE = ''`
@@ -310,7 +310,7 @@ RESET REPLICA ALL;
310310
--remove_file $MYSQL_TMP_DIR/check_assign_gtids_to_anonymous_transactions_in_table_repo.inc
311311

312312
CALL mtr.add_suppression("Error reading relay log configuration.");
313-
CALL mtr.add_suppression("Replica: Failed to initialize the connection metadata structure for channel ''; its record may still be present in the applier metadata repository, consider deleting it*");
313+
CALL mtr.add_suppression("Replica: Failed to initialize the connection metadata structure for channel ''; its record may still be present in the applier metadata repository, consider deleting it.");
314314
CALL mtr.add_suppression("Failed to create or recover replication info repositories.");
315315
CALL mtr.add_suppression("Replica SQL for channel '': Replica failed to initialize applier metadata structure from the repository,*");
316316
CALL mtr.add_suppression("Using ASSIGN_GTIDS_TO_ANONYMOUS_TRANSACTIONS implies limitations on the replication topology*");

mysql-test/suite/rpl/t/rpl_log_info_repository_persistence_require_table_primary_key_check.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ UPDATE mysql.slave_relay_log_info SET Number_of_lines = 11;
227227

228228
--let $count = `SELECT COUNT(*) FROM performance_schema.replication_applier_configuration WHERE REQUIRE_TABLE_PRIMARY_KEY_CHECK = 'STREAM'`
229229
--let $assert_text = Check the number of channels with REQUIRE_TABLE_PRIMARY_KEY_CHECK set to STREAM
230-
--let $assert_cond = $count = 2 # The recovery channel wont appear unless we start GR
230+
--let $assert_cond = $count = 3
231231
--source include/assert.inc
232232

233233
--let $count = `SELECT COUNT(*) FROM mysql.slave_relay_log_info WHERE REQUIRE_TABLE_PRIMARY_KEY_CHECK = 'STREAM'`

mysql-test/suite/rpl/t/rpl_mts_rec_crash_safe_small.test

Lines changed: 0 additions & 17 deletions
This file was deleted.

mysql-test/suite/rpl/t/rpl_multi_source_init_failure.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
--source include/have_binlog_format_row.inc
2+
--source include/not_rpl_gtid_only.inc
23
--source include/rpl/init_source_replica.inc
34

45
--source include/rpl/connection_replica.inc

mysql-test/suite/rpl/t/rpl_relay_log_rotation_on_worker_failure.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
--source include/have_debug_sync.inc
2929
--source include/have_binlog_format_row.inc
3030
--source include/have_replica_parallel_workers.inc
31+
--source include/have_replica_parallel_type_logical_clock.inc
3132

3233
--echo
3334
--echo ##############################################################

mysql-test/suite/rpl/t/rpl_relay_log_space_limit_net_write_timeout.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
--source include/big_test.inc
7575

7676
--source include/have_binlog_format_row.inc
77+
--source include/not_have_privilege_checks_user.inc
7778

7879
--let $rpl_skip_start_slave=1
7980
--source include/rpl/init_source_replica.inc

mysql-test/suite/rpl/t/rpl_stm_non_trans_mix_engine_warning.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
--source include/big_test.inc
2121
--source include/have_binlog_format_statement.inc
22+
--source include/not_have_privilege_checks_user.inc
2223
--source include/rpl/init_source_replica.inc
2324

2425
#suppress warning

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ START REPLICA SQL_THREAD FOR CHANNEL 'pitr';
3333
# 5. Wait for expected gtid set on server_2
3434

3535
include/rpl/sync_with_saved.inc
36+
include/rpl/stop_replica.inc [FOR CHANNEL 'pitr']
37+
RESET REPLICA ALL FOR CHANNEL 'pitr';
3638
include/rpl/deinit.inc

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ START REPLICA SQL_THREAD FOR CHANNEL 'pitr';
9898

9999
--source include/rpl/sync_with_saved.inc
100100

101+
--let $rpl_channel_name= 'pitr'
102+
--source include/rpl/stop_replica.inc
103+
--let $rpl_channel_name=
104+
RESET REPLICA ALL FOR CHANNEL 'pitr';
105+
101106
# Clean up
102107
--remove_file $server_2_datadir/binlog-pitr.index.bak
103108

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939

4040
# Output from mysqlbinlog is replayed on the slave server.
4141
--source include/not_have_privilege_checks_user.inc
42-
--source include/rpl/init_source_replica.inc
4342
--source include/have_binlog_format_row.inc
43+
--source include/not_rpl_gtid_only.inc
44+
--source include/rpl/init_source_replica.inc
4445

4546
--connection slave
4647
--source include/rpl/stop_replica.inc

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
# CAUSES A TRX TO LOG WITH A DIFFERENT GTID
1717
#
1818
--source include/have_binlog_format_row.inc
19-
--source include/rpl/init_source_replica.inc
2019
# Test should run only on debug build
2120
source include/have_debug.inc;
2221
source include/have_debug_sync.inc;
22+
--source include/not_rpl_gtid_only.inc
23+
--source include/rpl/init_source_replica.inc
2324

2425

2526
--echo # Preparing the relaylog

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
# transactions parallelizable on the replica.
4242

4343
--source include/have_binlog_format_row.inc
44+
--source include/have_replica_parallel_type_logical_clock.inc
45+
--source include/have_replica_parallel_workers.inc
4446
--source include/have_debug_sync.inc
4547
--let $rpl_extra_connections_per_server = 3
4648
--source include/rpl/init_source_replica.inc

0 commit comments

Comments
 (0)