Commit 50a8fc52 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-18224 MTR's internal check of the test case 'innodb.recovery_shutdown'...

MDEV-18224 MTR's internal check of the test case 'innodb.recovery_shutdown' failed due to extra #sql-ib*.ibd files

The test innodb.recovery_shutdown would occasionally fail,
because recovered incomplete transactions would be conflicting
with DROP TABLE, causing the background drop table queue to be invoked.

Add a slow shutdown before dropping the tables, so that the
recovered transactions will be rolled back. Starting with MDEV-14705,
normal shutdown would abort the rollback of recovered transactions.
parent 031fa8f1
...@@ -48,6 +48,12 @@ FLUSH TABLES; ...@@ -48,6 +48,12 @@ FLUSH TABLES;
--let $shutdown_timeout=60 --let $shutdown_timeout=60
--source include/restart_mysqld.inc --source include/restart_mysqld.inc
# Perform a slow shutdown in order to roll back all recovered transactions
# and to avoid locking conflicts with the DROP TABLE below.
--disable_query_log
SET GLOBAL innodb_fast_shutdown=0;
--source include/restart_mysqld.inc
--disable_query_log --disable_query_log
let $c = $trx; let $c = $trx;
while ($c) while ($c)
......
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