Commit 67b4a6f5 authored by Elena Stepanova's avatar Elena Stepanova

MDEV-8859 rpl.rpl_mdev382 sporadically fails to finish due to disappeared expect file

The combination of --remove_file and --write_file on .expect file creates
a race condition which can be hit by MTR which reads the file in a loop.
Instead, .expect file should be changed with --append_file.
It was fixed in 10.x, but in 5.5 the sporadic failure still affected buildbot.
Fixed 3 test files which use the problematic combination
parent 87007dc2
...@@ -44,8 +44,7 @@ connection con1; ...@@ -44,8 +44,7 @@ connection con1;
--error 2006,2013 --error 2006,2013
reap; reap;
--remove_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
restart-binlog_mdev342.test restart-binlog_mdev342.test
EOF EOF
......
...@@ -209,8 +209,7 @@ EOF ...@@ -209,8 +209,7 @@ EOF
--shutdown_server 30 --shutdown_server 30
--remove_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
restart-rpl_mdev382.test restart-rpl_mdev382.test
EOF EOF
......
...@@ -53,8 +53,7 @@ EOF ...@@ -53,8 +53,7 @@ EOF
--replace_result $datadir <DATADIR> --replace_result $datadir <DATADIR>
--copy_file $datadir/test/t1.ibd $datadir/test/t1.ibd.save --copy_file $datadir/test/t1.ibd $datadir/test/t1.ibd.save
--remove_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect --append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
restart restart
EOF EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment