-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.6-ps-bug1651657' into 5.7-ps-bug1651657
- Loading branch information
Showing
7 changed files
with
119 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
include/assert.inc [Small buffer pool instances should use legacy] | ||
call mtr.add_suppression("InnoDB: innodb_empty_free_list_algorithm = 'backoff' requires at least 20MB buffer pool instances."); | ||
SET GLOBAL innodb_empty_free_list_algorithm="backoff"; | ||
ERROR 42000: Variable 'innodb_empty_free_list_algorithm' can't be set to the value of 'backoff' | ||
include/assert.inc [Small buffer pool instances should use legacy] | ||
SET @@GLOBAL.innodb_buffer_pool_size = 1189085184; | ||
SET GLOBAL innodb_empty_free_list_algorithm="backoff"; | ||
SET @@GLOBAL.innodb_buffer_pool_size = 1075838976; | ||
ERROR 42000: Variable 'innodb_buffer_pool_size' can't be set to the value of '1075838976' | ||
SET GLOBAL innodb_empty_free_list_algorithm="legacy"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--innodb-buffer-pool-size=1026M --innodb-buffer-pool-instances=54 --innodb-empty-free-list-algorithm=backoff --innodb_buffer_pool_chunk_size=1048576 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--source include/have_innodb.inc | ||
--let $assert_text= Small buffer pool instances should use legacy | ||
--let $assert_cond= @@innodb_empty_free_list_algorithm = "legacy" | ||
--source include/assert.inc | ||
|
||
call mtr.add_suppression("InnoDB: innodb_empty_free_list_algorithm = 'backoff' requires at least 20MB buffer pool instances."); | ||
--error 1231 | ||
SET GLOBAL innodb_empty_free_list_algorithm="backoff"; | ||
--let $assert_text= Small buffer pool instances should use legacy | ||
--let $assert_cond= @@innodb_empty_free_list_algorithm = "legacy" | ||
--source include/assert.inc | ||
|
||
# Test buffer pool expand and shink with backoff algorithm. | ||
let $wait_timeout = 180; | ||
let $wait_condition = | ||
SELECT SUBSTR(variable_value, 1, 34) = 'Completed resizing buffer pool at ' | ||
FROM information_schema.global_status | ||
WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status'; | ||
--disable_query_log | ||
set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size; | ||
if (`select (version() like '%debug%') > 0`) | ||
{ | ||
set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug; | ||
set global innodb_disable_resize_buffer_pool_debug = OFF; | ||
} | ||
--enable_query_log | ||
|
||
SET @@GLOBAL.innodb_buffer_pool_size = 1189085184; | ||
--source include/wait_condition.inc | ||
SET GLOBAL innodb_empty_free_list_algorithm="backoff"; | ||
|
||
--error 1231 | ||
SET @@GLOBAL.innodb_buffer_pool_size = 1075838976; | ||
|
||
SET GLOBAL innodb_empty_free_list_algorithm="legacy"; | ||
|
||
--disable_query_log | ||
set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size; | ||
if (`select (version() like '%debug%') > 0`) | ||
{ | ||
set global innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize; | ||
} | ||
--enable_query_log | ||
--source include/wait_condition.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
mysql-test/suite/sys_vars/t/innodb_empty_free_list_algorithm_basic-master.opt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
--innodb-buffer-pool-size=20M | ||
--innodb-buffer-pool-size=20M --innodb_buffer_pool_instances=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters