| 1 |
# 0. Check and generate prerequites |
| 2 |
# 1. Try to restart the server with some other legal innodb page size value. |
| 3 |
# It must fail because we had a different value before. |
| 4 |
# 1.1 The value assigned is a number. |
| 5 |
Pattern "innodb-page-size has been changed from the default value DEFAULT_PAGE_SIZE to OTHER_PAGE_SIZE" found |
| 6 |
Pattern "Data file '.*ibdata1' uses page size START_PAGE_SIZE, but the innodb_page_size start-up parameter is OTHER_PAGE_SIZE" found |
| 7 |
Pattern "\[ERROR\] \[[^]]*\] \[[^]]*\] Aborting" found |
| 8 |
# 1.2 The value assigned is a number followed by 'k'. |
| 9 |
Pattern "innodb-page-size has been changed from the default value DEFAULT_PAGE_SIZE to OTHER_PAGE_SIZE" found |
| 10 |
Pattern "Data file '.*ibdata1' uses page size START_PAGE_SIZE, but the innodb_page_size start-up parameter is OTHER_PAGE_SIZE" found |
| 11 |
Pattern "\[ERROR\] \[[^]]*\] \[[^]]*\] Aborting" found |
| 12 |
# 2. Try to restart the server with some innodb page size.which is either |
| 13 |
# bigger than the maximum or smaller than the minimum supported one. |
| 14 |
# It must fail because we had a different value before. |
| 15 |
Pattern "\[Warning\] \[[^]]*\] \[[^]]*\] option 'innodb-page-size': unsigned value OUT_RANGE_PAGE_SIZE adjusted to ADJUST_PAGE_SIZE" found |
| 16 |
Pattern "innodb-page-size has been changed from the default value DEFAULT_PAGE_SIZE to ADJUST_PAGE_SIZE" found |
| 17 |
# 3. Try to restart the server with the plain wrong innodb page size value "garbage". |
| 18 |
# The restart attempt has to |
| 19 |
# - fail in case start of test page size <> the minimal legal page size. |
| 20 |
# - to be successful in case start of test page size = minimal legal page size. |
| 21 |
# In this case we omit the execution of the current sub test! |
| 22 |
# 4. Try to restart the server with some illegal innodb page size value |
| 23 |
# being between minimum and maximum legal page size value. |
| 24 |
# The restart attempt has to fail. |
| 25 |
Pattern "\[ERROR\] .*MY-\d+.* Invalid page size=ILLEGAL_PAGESIZE" found |
| 26 |
# 5. Try to restart the server with wrong innodb page size <number>karamel. |
| 27 |
# <number>k is a legal page size. |
| 28 |
Pattern "innodb-page-size has been changed from the default value DEFAULT_PAGE_SIZE to OTHER_PAGE_SIZE" found |
| 29 |
# 6. Try to restart the server with the plain wrong innodb page size <number>caramel |
| 30 |
# <number>k is a legal page size. |
| 31 |
# The restart attempt has to |
| 32 |
# - fail in case start of test page size <> the minimal legal page size. |
| 33 |
# - to be successful in case start of test page size = minimal legal page size. |
| 34 |
# In this case we omit the execution of the current sub test! |
| 35 |
# 7. Restart the server and cleanup |
| 36 |
# restart |
| 37 |
call mtr.add_suppression("Ignoring ib_4096_0.dblwr - page size doesn't match"); |