Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Console View


Categories: connectors experimental galera main
Legend:   Passed Failed Warnings Failed Again Running Exception Offline No data

connectors experimental galera main
Elena Stepanova
MDEV-42521 Replication tests fail with ER_BINLOG_IN_USE when run after another test

12.3 changed RESET MASTER. The binlog-in-engine commit (7081f2a58ec)
added a check in MYSQL_BIN_LOG::reset_logs() in sql/log.cc. RESET MASTER
now fails with ER_BINLOG_IN_USE while any binlog dump thread is still
registered, even an idle one whose slave has already disconnected. Before
12.3, such leftover threads didn't block it, so the test passes there.

That commit also updated the test framework for this:
include/rpl_init.inc and include/rpl_reset.inc now kill dump threads
before RESET MASTER, and there is a new include/reset_master.inc
that kills them and retries. The fix is to use this include.
Elena Stepanova
Re-organize to reuse the same job
Elena Stepanova
MDEV-41085 Enable MTR tests on Windows: rpl suite
Elena Stepanova
MDEV-41085 Enable MTR tests on Windows: rpl suite
Elena Stepanova
Explicitly turn off RocksDB and some other engines

Otherwise 11.4 still tries to build it and fails
Elena Stepanova
rpl.rpl_corrupted_decimal_precision fails with timeout

Due to MDEV-42580, if an earlier test ever set a replication filter,
the SQL abort expected in rpl.rpl_corrupted_decimal_precision
never happens, and the test fails with a timeout. To avoid it,
temporarily enforce the slave restart at the beginning of the test.
It should be removed when the bug is fixed
Elena Stepanova
MDEV-42238 rpl.rpl_row_mysqlbinlog fails on Windows (charset problem)

rpl.rpl_row_mysqlbinlog fails because apparently the client command
line on Windows cannot interpret the literal cp932 string which is
passed to it. Since the point of the test is not how the original
INSERT happens, but how it further works while replaying the binlog,
it should be acceptable to insert a hex-encoded value

Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42567 rpl.rpl_change_master_implicit_gtid_warning fails with "Can't initialize replace" when run after another test

The test stopped the slave right after include/master-slave.inc and
then built CHANGE MASTER coordinates from SHOW SLAVE STATUS. But
master-slave.inc only waits for Slave_IO_Running=Yes, which the IO
thread reports right after sending COM_BINLOG_DUMP, before it has
received anything from the master. If STOP SLAVE arrives before the
master's initial fake Rotate event, Master_Log_File is still empty
and --replace_result fails with
"Can't initialize replace from 'replace_result $io_log_file ...'".

The race is lost reliably when the test runs after another
replication test (e.g. with --repeat) over a non-TLS replication
connection, which is the default in 10.11. There the master's dump
thread from the previous test is still waiting for binlog updates
when the slave reconnects, and kill_zombie_dump_threads() delays the
new dump by at least 100 ms. With TLS replication (the default in
11.4+) the old dump thread is already gone and the test passes;
11.4 with --skip-ssl fails the same way as 10.11.

Fix: sync the slave with the master before stopping it, so that the
IO thread has read the master's initial events and Master_Log_File
and Read_Master_Log_Pos are populated. The result file is unchanged.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
MDEV-42586 rpl.warn_slaves_not_needed_for_purge fails when run in a chain of tests

The warning about the @@slave_connections_needed_for_purge default is
printed only once per server process: warn_slaves_not_needed_for_purge
is cleared by the first COM_REGISTER_SLAVE and whenever the variable is
set, either on the command line or with SET.

The test assumed the flag was still set when it started. MTR reuses
running servers between tests, so after a previous test whose slave
connected to the master, or after the test itself (it ends with
SET @@GLOBAL.slave_connections_needed_for_purge= DEFAULT), the flag was
already cleared. The warning was then never logged in this test's section
of the error log, and both expected-FOUND checks failed. This happened
with --repeat and when the test ran after another replication test.

Restart the master at the beginning of the test, before the slave
connects, so the test always starts with the flag set.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
Merge remote-tracking branch 'origin/12.3-elenst' into bb-13.2-elenst
Elena Stepanova
MDEV-42202 perfschema.relaylog fails when run after other replication tests

The test checks file I/O instrumentation accumulated since server
startup, so it relied on getting freshly started servers. With
duplicate options removed, mtr may now reuse servers left by
a previous replication test, and the test sees binary/relay log
files and statistics from it.

Restart both servers at the beginning of the test, removing
binary and relay logs while the servers are down. RESET MASTER
and RESET SLAVE are not sufficient, as performance schema keeps
instances of files deleted by them, and a restart opens a new
binary log anyway.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42570 rpl.rpl_start_alter_restart_master fails when run in a chain of tests

The test shows the slave binary log from the beginning, including
the replicated mtr.add_suppression() transaction. How that transaction
ends in the slave binary log depends on the engine of
mysql.gtid_slave_pos, because the slave updates the table within
the same transaction. With Aria (the default under MTR) it ends with
Query COMMIT. With InnoDB, InnoDB takes part in the transaction and
it ends with Xid COMMIT.

Many replication tests change mysql.gtid_slave_pos to InnoDB and
don't restore it, for example rpl_start_alter_mysqlbinlog_1, and
check-testcase does not check table engines. When mtr reuses
the servers after such a test, the result mismatches. The test
passes after a restart or with --repeat, because then the table
is in Aria.

Set the engine of mysql.gtid_slave_pos on the slave to Aria
explicitly at the beginning of the test, so that the result
does not depend on previous tests.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
Re-organize to reuse the same job
Elena Stepanova
MDEV-42590 rpl.rpl_start_alter_restart_master leaves replication setup behind
Elena Stepanova
Merge 10.11 into 11.4
Elena Stepanova
MDEV-42586 rpl.warn_slaves_not_needed_for_purge fails when run in a chain of tests

The warning about the @@slave_connections_needed_for_purge default is
printed only once per server process: warn_slaves_not_needed_for_purge
is cleared by the first COM_REGISTER_SLAVE and whenever the variable is
set, either on the command line or with SET.

The test assumed the flag was still set when it started. MTR reuses
running servers between tests, so after a previous test whose slave
connected to the master, or after the test itself (it ends with
SET @@GLOBAL.slave_connections_needed_for_purge= DEFAULT), the flag was
already cleared. The warning was then never logged in this test's section
of the error log, and both expected-FOUND checks failed. This happened
with --repeat and when the test ran after another replication test.

Restart the master at the beginning of the test, before the slave
connects, so the test always starts with the flag set.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
Merge remote-tracking branch 'origin/11.4-elenst' into bb-11.8-elenst
Elena Stepanova
MDEV-42521 multi_source.mix_semisync_async fails with ER_BINLOG_IN_USE when run after another test

12.3 changed RESET MASTER. The binlog-in-engine commit (7081f2a58ec)
added a check in MYSQL_BIN_LOG::reset_logs() in sql/log.cc. RESET MASTER
now fails with ER_BINLOG_IN_USE while any binlog dump thread is still
registered, even an idle one whose slave has already disconnected. Before
12.3, such leftover threads didn't block it, so the test passes there.

That commit also updated the test framework for this:
include/rpl_init.inc and include/rpl_reset.inc now kill dump threads
before RESET MASTER, and there is a new include/reset_master.inc
that kills them and retries. The fix is to use this include.
Elena Stepanova
MDEV-42228 MTR tests fail with "File already exist" for .expect files on Windows

On Windows mtr workers are threads of one process, so a handle opened
while reading the .expect file could be inherited by a server spawned
at the same time by another worker. That kept the file from being
deleted for the lifetime of that server, and the next --write_file of
the .expect file failed with "File already exist".

Read the .expect file under the spawn lock.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Vladislav Vaintroub
Elena Stepanova
MDEV-42590 rpl.rpl_start_alter_restart_master leaves replication setup behind
Elena Stepanova
MDEV-41085 Enable MTR tests on Windows: rpl suite
Elena Stepanova
MDEV-42238 rpl.rpl_row_mysqlbinlog fails on Windows (charset problem)

rpl.rpl_row_mysqlbinlog fails because apparently the client command
line on Windows cannot interpret the literal cp932 string which is
passed to it. Since the point of the test is not how the original
INSERT happens, but how it further works while replaying the binlog,
it should be acceptable to insert a hex-encoded value

Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42202 perfschema.relaylog fails when run after other replication tests

The test checks file I/O instrumentation accumulated since server
startup, so it relied on getting freshly started servers. With
duplicate options removed, mtr may now reuse servers left by
a previous replication test, and the test sees binary/relay log
files and statistics from it.

Restart both servers at the beginning of the test, removing
binary and relay logs while the servers are down. RESET MASTER
and RESET SLAVE are not sufficient, as performance schema keeps
instances of files deleted by them, and a restart opens a new
binary log anyway.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Elena Stepanova
Trying to split github actions run into small and big-only

To save execution time
Elena Stepanova
MDEV-42236 rpl.rpl_change_master_long_channel_name fails on Windows (too long path)

rpl.rpl_change_master_long_channel_name fails on Windows because it
expects a 252-character name (base name, excluding the path) to be
valid; on Windows the whole path is limited to 260 characters, so
a 252-character name makes it too long. The patch disables the test
for Windows.

Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42198 Options from MTR opt files are added multiple times

Options from .opt files of included files were appended every time
the file was sourced, so they got repeated once per include path.
It caused unnecessary server restarts, and too long server command
lines lead to startup failures on Windows.

Now each file caches only its own .opt options plus an ordered list
of the files (itself and everything it sources) whose options apply,
each file listed once. The test's options are assembled from that list.
Options of included files still precede those of the including file.
If a file is sourced several times, its options are applied at the
place of its last inclusion, so the effective option values stay
the same as before, and a test can still source a file again to
override options set by files sourced in between.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Alice Sherepa
Elena Stepanova
MDEV-42237 rpl.rpl_read_old_relay_log_info fails on Windows (Linux-style path)

rpl.rpl_read_old_relay_log_info fails because the test overrides
relay-log.info with the Linux-style ./slave-relay-bin.000001,
while Windows uses the format with backslashes, .\slave-relay-bin.000001.
The patch modifies the file contents using a perl block, which keeps
the relay log name intact and only replaces the position. Thus the name
remains valid for whatever system the test is run on.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42586 rpl.warn_slaves_not_needed_for_purge fails when run in a chain of tests

The warning about the @@slave_connections_needed_for_purge default is
printed only once per server process: warn_slaves_not_needed_for_purge
is cleared by the first COM_REGISTER_SLAVE and whenever the variable is
set, either on the command line or with SET.

The test assumed the flag was still set when it started. MTR reuses
running servers between tests, so after a previous test whose slave
connected to the master, or after the test itself (it ends with
SET @@GLOBAL.slave_connections_needed_for_purge= DEFAULT), the flag was
already cleared. The warning was then never logged in this test's section
of the error log, and both expected-FOUND checks failed. This happened
with --repeat and when the test ran after another replication test.

Restart the master at the beginning of the test, before the slave
connects, so the test always starts with the flag set.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
MDEV-42200 main.mysqlbinlog_stmt_compressed depends on previous tests

The test ran mysqlbinlog on the current binlog file from the start,
and if that file still held the previous test's events, it would
cause a mismatch. Additionally, thread_id value depended on the
chain of tests.

The part for thread_id is taken from 11.8, to preserve consistency.

Assisted-by: Claude:claude-sonnet-5-5
Reviewed-by: Kristian Nielsen
Elena Stepanova
MDEV-42570 rpl.rpl_start_alter_restart_master fails when run in a chain of tests

The test shows the slave binary log from the beginning, including
the replicated mtr.add_suppression() transaction. How that transaction
ends in the slave binary log depends on the engine of
mysql.gtid_slave_pos, because the slave updates the table within
the same transaction. With Aria (the default under MTR) it ends with
Query COMMIT. With InnoDB, InnoDB takes part in the transaction and
it ends with Xid COMMIT.

Many replication tests change mysql.gtid_slave_pos to InnoDB and
don't restore it, for example rpl_start_alter_mysqlbinlog_1, and
check-testcase does not check table engines. When mtr reuses
the servers after such a test, the result mismatches. The test
passes after a restart or with --repeat, because then the table
is in Aria.

Set the engine of mysql.gtid_slave_pos on the slave to Aria
explicitly at the beginning of the test, so that the result
does not depend on previous tests.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
MDEV-42237 rpl.rpl_read_old_relay_log_info fails on Windows (Linux-style path)

rpl.rpl_read_old_relay_log_info fails because the test overrides
relay-log.info with the Linux-style ./slave-relay-bin.000001,
while Windows uses the format with backslashes, .\slave-relay-bin.000001.
The patch modifies the file contents using a perl block, which keeps
the relay log name intact and only replaces the position. Thus the name
remains valid for whatever system the test is run on.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42594 rpl.rpl_binlog_directory fails on Windows with wrong result (slashes in the path)
Elena Stepanova
rpl.rpl_corrupted_decimal_precision fails with timeout

Due to MDEV-42580, if an earlier test ever set a replication filter,
the SQL abort expected in rpl.rpl_corrupted_decimal_precision
never happens, and the test fails with a timeout. To avoid it,
temporarily enforce the slave restart at the beginning of the test.
It should be removed when the bug is fixed
Elena Stepanova
MDEV-42198 Options from MTR opt files are added multiple times

Options from .opt files of included files were appended every time
the file was sourced, so they got repeated once per include path.
It caused unnecessary server restarts, and too long server command
lines lead to startup failures on Windows.

Now each file caches only its own .opt options plus an ordered list
of the files (itself and everything it sources) whose options apply,
each file listed once. The test's options are assembled from that list.
Options of included files still precede those of the including file.
If a file is sourced several times, its options are applied at the
place of its last inclusion, so the effective option values stay
the same as before, and a test can still source a file again to
override options set by files sourced in between.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Alice Sherepa
Elena Stepanova
Explicitly turn off RocksDB and some other engines

Otherwise 11.4 still tries to build it and fails
Elena Stepanova
MDEV-42200 main.mysqlbinlog_stmt_compressed depends on previous tests

The test ran mysqlbinlog on the current binlog file from the start,
and if that file still held the previous test's events, it would
cause a mismatch. Additionally, thread_id value depended on the
chain of tests.

The part for thread_id is taken from 11.8, to preserve consistency.

Assisted-by: Claude:claude-sonnet-5-5
Reviewed-by: Kristian Nielsen
Elena Stepanova
MDEV-42236 rpl.rpl_change_master_long_channel_name fails on Windows (too long path)

rpl.rpl_change_master_long_channel_name fails on Windows because it
expects a 252-character name (base name, excluding the path) to be
valid; on Windows the whole path is limited to 260 characters, so
a 252-character name makes it too long. The patch disables the test
for Windows.

Reviewed-by: Susil Behera
Elena Stepanova
Trying to split github actions run into small and big-only

To save execution time
Elena Stepanova
MDEV-42228 MTR tests fail with "File already exist" for .expect files on Windows

On Windows mtr workers are threads of one process, so a handle opened
while reading the .expect file could be inherited by a server spawned
at the same time by another worker. That kept the file from being
deleted for the lifetime of that server, and the next --write_file of
the .expect file failed with "File already exist".

Read the .expect file under the spawn lock.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Vladislav Vaintroub
Elena Stepanova
MDEV-42567 rpl.rpl_change_master_implicit_gtid_warning fails with "Can't initialize replace" when run after another test

The test stopped the slave right after include/master-slave.inc and
then built CHANGE MASTER coordinates from SHOW SLAVE STATUS. But
master-slave.inc only waits for Slave_IO_Running=Yes, which the IO
thread reports right after sending COM_BINLOG_DUMP, before it has
received anything from the master. If STOP SLAVE arrives before the
master's initial fake Rotate event, Master_Log_File is still empty
and --replace_result fails with
"Can't initialize replace from 'replace_result $io_log_file ...'".

The race is lost reliably when the test runs after another
replication test (e.g. with --repeat) over a non-TLS replication
connection, which is the default in 10.11. There the master's dump
thread from the previous test is still waiting for binlog updates
when the slave reconnects, and kill_zombie_dump_threads() delays the
new dump by at least 100 ms. With TLS replication (the default in
11.4+) the old dump thread is already gone and the test passes;
11.4 with --skip-ssl fails the same way as 10.11.

Fix: sync the slave with the master before stopping it, so that the
IO thread has read the master's initial events and Master_Log_File
and Read_Master_Log_Pos are populated. The result file is unchanged.

Assisted-by: Claude:claude-opus-5-5