| 1 |
|
| 2 |
--source include/have_debug.inc |
| 3 |
|
| 4 |
--echo # |
| 5 |
--echo # Bug #21348684 SIGABRT DURING RESIZING THE INNODB BUFFER POOL |
| 6 |
--echo # ONLINE WITH MEMORY FULL CONDITION |
| 7 |
--echo # |
| 8 |
|
| 9 |
--disable_query_log |
| 10 |
call mtr.add_suppression("\\[ERROR\\] .*MY-\\d+.* Cannot allocate .*"); |
| 11 |
call mtr.add_suppression(".* failed to allocate the chunk array"); |
| 12 |
call mtr.add_suppression(".* failed to allocate new memory"); |
| 13 |
call mtr.add_suppression(".* failed; errno 12"); |
| 14 |
|
| 15 |
set @before_innodb_buffer_pool_size = @@innodb_buffer_pool_size; |
| 16 |
--enable_query_log |
| 17 |
|
| 18 |
SET GLOBAL DEBUG='+d,buf_pool_resize_chunk_null'; |
| 19 |
|
| 20 |
--echo # Setting innodb buffer pool size 10MB more than before |
| 21 |
SET GLOBAL innodb_buffer_pool_size=@before_innodb_buffer_pool_size + 10485760; |
| 22 |
|
| 23 |
let $wait_timeout = 60; |
| 24 |
let $wait_condition = |
| 25 |
SELECT SUBSTR(variable_value, 1, 27) = 'Resizing buffer pool failed' |
| 26 |
FROM performance_schema.global_status |
| 27 |
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status'; |
| 28 |
|
| 29 |
--source include/wait_condition.inc |
| 30 |
|
| 31 |
SET GLOBAL DEBUG='-d,buf_pool_resize_chunk_null'; |
| 32 |
SET GLOBAL innodb_buffer_pool_size=@before_innodb_buffer_pool_size; |
| 33 |
|
| 34 |
# SELECT SUBSTR(variable_value, 1, 9) = 'Completed' |
| 35 |
# SELECT SUBSTR(variable_value, 1, 19) = 'Size did not change' |
| 36 |
|
| 37 |
let $wait_timeout = 60; |
| 38 |
let $wait_condition = |
| 39 |
SELECT SUBSTR(variable_value, 1, 9) = 'Completed' |
| 40 |
FROM performance_schema.global_status |
| 41 |
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status'; |
| 42 |
|
| 43 |
--source include/wait_condition.inc |
| 44 |
|
| 45 |
# The state is not reverting back to original somehow, restart is needed if this |
| 46 |
# case is to be tested again. |
| 47 |
--source include/force_restart.inc |