Skip to content

Commit 0e31818

Browse files
PS-10321 postfix: binlog-server fails to read the new events after upgrading server from 8.0 to 8.4
https://perconadev.atlassian.net/browse/PS-10321 Fixed 'binlog_streaming.data_directory_8_0_to_8_4_upgrade' MTR test case that started to fail after 30 days since it was created. The problem turned out to be connected with enabled automatic purging of binary log files (set to 30 days) that started to happen upon MySQL Server restart during 8.0 -> 8.4 data directory upgrade. Fixed by adding the "--log-error=$MYSQLD_LOG --binlog_expire_logs_auto_purge=OFF" command line option to the restart command.
1 parent 4b930ad commit 0e31818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mtr/binlog_streaming/t/data_directory_8_0_to_8_4_upgrade.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if ($lts_series != v84)
4242
--echo *** Running 8.4 binaries on a 8.0 data directory
4343
--let $MYSQLD_LOG = $MYSQLTEST_VARDIR/log/upgrade.log
4444
--let $do_not_echo_parameters = 1
45-
--let $restart_parameters = restart: --datadir=$CUSTOM_MYSQLD_DATADIR --log-error=$MYSQLD_LOG
45+
--let $restart_parameters = restart: --datadir=$CUSTOM_MYSQLD_DATADIR --log-error=$MYSQLD_LOG --binlog_expire_logs_auto_purge=OFF
4646
--source include/start_mysqld.inc
4747

4848
--echo

0 commit comments

Comments
 (0)