| 1 |
# |
| 2 |
# MDEV-19229 Allow innodb_undo_tablespaces to be changed |
| 3 |
# after database creation |
| 4 |
# |
| 5 |
call mtr.add_suppression("InnoDB: Plugin initialization aborted"); |
| 6 |
call mtr.add_suppression("Plugin 'InnoDB' init function returned error"); |
| 7 |
call mtr.add_suppression("Plugin 'InnoDB' registration as a STORAGE ENGINE failed"); |
| 8 |
set global innodb_fast_shutdown=0; |
| 9 |
# case 1: Abort after resetting TRX_SYS page rollback segments |
| 10 |
# restart: --innodb_undo_tablespaces=4 --debug_dbug=+d,after_rseg_reset_abort |
| 11 |
# restart: --innodb_undo_tablespaces=4 |
| 12 |
# Should list 4 undo log tablespaces |
| 13 |
undo001 |
| 14 |
undo002 |
| 15 |
undo003 |
| 16 |
undo004 |
| 17 |
# case 2: Abort after deleting the old undo tablespaces |
| 18 |
# restart: --innodb_undo_tablespaces=2 --debug_dbug=+d,after_deleting_old_undo_abort |
| 19 |
# restart: --innodb_undo_tablespaces=2 |
| 20 |
# Should list 2 undo log tablespaces |
| 21 |
undo001 |
| 22 |
undo002 |
| 23 |
# case 3: Abort after successfully deleting the old undo tablespace |
| 24 |
# restart: --innodb_undo_tablespaces=3 --debug_dbug=+d,after_deleting_old_undo_success |
| 25 |
# restart: --innodb_undo_tablespaces=3 |
| 26 |
# Should list 3 undo log tablespaces |
| 27 |
undo001 |
| 28 |
undo002 |
| 29 |
undo003 |
| 30 |
# restart: --innodb_undo_tablespaces=4 |
| 31 |
# Should list 4 undo log tablespaces |
| 32 |
undo001 |
| 33 |
undo002 |
| 34 |
undo003 |
| 35 |
undo004 |
| 36 |
# restart: --innodb_undo_tablespaces=2 |
| 37 |
# Should list 2 undo log tablespaces |
| 38 |
undo001 |
| 39 |
undo002 |