Skip to content

Commit

Permalink
MDEV-34030 rpl.rpl_using_gtid_default can fail in (BB) mtr
Browse files Browse the repository at this point in the history
The test's header is not written to follow strictly a correct order
of checks by mtr at test start which may lead to an error. E.g

./mtr --mysqld=--binlog-format=row rpl.rpl_using_gtid_default

to
At line 175: query 'SET GLOBAL gtid_slave_pos= ""' failed: ER_SLAVE_MUST_STOP (1198): This operation cannot be performed as you have a running slave ''; run STOP SLAVE '' first

Fixed to require the binlog format first in the test header.
  • Loading branch information
andrelkin committed Apr 30, 2024
1 parent 6a63204 commit ae03374
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mysql-test/suite/rpl/t/rpl_using_gtid_default.test
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@
# replication is used by default if master supports it
#
--source include/have_debug.inc
--source include/master-slave.inc

# Format independent test so just use one
--source include/have_binlog_format_mixed.inc
--source include/master-slave.inc

--echo #
--echo # Slave default configuration should be Slave_Pos
Expand Down

0 comments on commit ae03374

Please sign in to comment.