Avoid shutdown timeout in innodb.undo_truncate
Let us explicitly wait for purge before invoking a slow shutdown, so that instrumented builds (such as ASAN or UBSAN) will not exceed the 60-second timeout during shutdown.
This commit is contained in:
parent
1766a18e06
commit
dc680d2119
@ -31,5 +31,7 @@ connection con2;
|
|||||||
commit;
|
commit;
|
||||||
disconnect con2;
|
disconnect con2;
|
||||||
connection default;
|
connection default;
|
||||||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||||
|
SET GLOBAL innodb_max_purge_lag_wait=0;
|
||||||
set global innodb_fast_shutdown=0;
|
set global innodb_fast_shutdown=0;
|
||||||
drop table t1, t2;
|
drop table t1, t2;
|
||||||
|
@ -45,6 +45,8 @@ connection default;
|
|||||||
let $trx_before= `SHOW ENGINE INNODB STATUS`;
|
let $trx_before= `SHOW ENGINE INNODB STATUS`;
|
||||||
let $trx_before= `select substr('$trx_before',9)+2`;
|
let $trx_before= `select substr('$trx_before',9)+2`;
|
||||||
|
|
||||||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
|
||||||
|
SET GLOBAL innodb_max_purge_lag_wait=0;
|
||||||
set global innodb_fast_shutdown=0;
|
set global innodb_fast_shutdown=0;
|
||||||
--source include/restart_mysqld.inc
|
--source include/restart_mysqld.inc
|
||||||
--replace_regex /.*Trx id counter ([0-9]+).*/\1/
|
--replace_regex /.*Trx id counter ([0-9]+).*/\1/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user