|
| 1 | +set global innodb_file_per_table=ON; |
| 2 | +set global innodb_thread_concurrency=20; |
| 3 | +connect con1,localhost,root,,; |
| 4 | +connect con2,localhost,root,,; |
| 5 | +connect con3,localhost,root,,; |
| 6 | +connect con4,localhost,root,,; |
| 7 | +connect con5,localhost,root,,; |
| 8 | +connect con6,localhost,root,,; |
| 9 | +connect con7,localhost,root,,; |
| 10 | +connect con8,localhost,root,,; |
| 11 | +create table t2 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 12 | +insert into t2 (c1, c2) values (1, 1); |
| 13 | +create table t3 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 14 | +insert into t3 (c1, c2) values (1, 1); |
| 15 | +create table t4 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 16 | +insert into t4 (c1, c2) values (1, 1); |
| 17 | +create table t5 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 18 | +insert into t5 (c1, c2) values (1, 1); |
| 19 | +create table t6 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 20 | +insert into t6 (c1, c2) values (1, 1); |
| 21 | +create database test2; |
| 22 | +create table test2.t7 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 23 | +insert into test2.t7 (c1, c2) values (1, 1); |
| 24 | +drop table test2.t7; |
| 25 | +connection con1; |
| 26 | +set @save_dbug=@@global.debug_dbug; |
| 27 | +set global debug_dbug="+d,ib_buf_pool_resize_wait_before_resize"; |
| 28 | +set global innodb_buffer_pool_size = 12*1024*1024; |
| 29 | +set global innodb_buffer_pool_size = 8*1024*1024; |
| 30 | +ERROR HY000: Another buffer pool resize is already in progress. |
| 31 | +select @@global.innodb_buffer_pool_size; |
| 32 | +@@global.innodb_buffer_pool_size |
| 33 | +8388608 |
| 34 | +select @@global.innodb_adaptive_hash_index; |
| 35 | +@@global.innodb_adaptive_hash_index |
| 36 | +0 |
| 37 | +set global innodb_adaptive_hash_index = ON; |
| 38 | +select @@global.innodb_adaptive_hash_index; |
| 39 | +@@global.innodb_adaptive_hash_index |
| 40 | +0 |
| 41 | +set global innodb_adaptive_hash_index = OFF; |
| 42 | +select @@global.innodb_adaptive_hash_index; |
| 43 | +@@global.innodb_adaptive_hash_index |
| 44 | +0 |
| 45 | +create table t1 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 46 | +connection con2; |
| 47 | +analyze table t2; |
| 48 | +connection con3; |
| 49 | +alter table t3 algorithm=inplace, add index idx (c1); |
| 50 | +connection con4; |
| 51 | +alter table t4 rename to t0; |
| 52 | +connection con5; |
| 53 | +drop table t5; |
| 54 | +connection con6; |
| 55 | +alter table t6 discard tablespace; |
| 56 | +connection con7; |
| 57 | +drop database test2; |
| 58 | +connection con8; |
| 59 | +select count(*) > 0 from information_schema.innodb_buffer_page; |
| 60 | +connection default; |
| 61 | +set global debug_dbug=@save_dbug; |
| 62 | +connection con1; |
| 63 | +connection con2; |
| 64 | +Table Op Msg_type Msg_text |
| 65 | +test.t2 analyze status OK |
| 66 | +connection con3; |
| 67 | +connection con4; |
| 68 | +connection con5; |
| 69 | +connection con6; |
| 70 | +connection con7; |
| 71 | +connection con8; |
| 72 | +count(*) > 0 |
| 73 | +1 |
| 74 | +connection default; |
| 75 | +disconnect con3; |
| 76 | +disconnect con4; |
| 77 | +disconnect con5; |
| 78 | +disconnect con6; |
| 79 | +disconnect con7; |
| 80 | +disconnect con8; |
| 81 | +disconnect con1; |
| 82 | +disconnect con2; |
| 83 | +call mtr.add_suppression("\\[ERROR\\] InnoDB: buffer pool 0 : failed to allocate new memory."); |
| 84 | +connection default; |
| 85 | +set global debug_dbug="+d,ib_buf_chunk_init_fails"; |
| 86 | +set global innodb_buffer_pool_size = 16*1024*1024; |
| 87 | +set global debug_dbug=@save_dbug; |
| 88 | +create table t8 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB; |
| 89 | +insert into t8 (c1, c2) values (1, 1); |
| 90 | +drop table t8; |
| 91 | +drop table t1; |
| 92 | +drop table t2; |
| 93 | +drop table t3; |
| 94 | +drop table t0; |
| 95 | +drop table t6; |
| 96 | +# |
| 97 | +# BUG#23590280 NO WARNING WHEN REDUCING INNODB_BUFFER_POOL_SIZE INSIZE THE FIRST CHUNK |
| 98 | +# |
| 99 | +SET @save_disable = @@GLOBAL.innodb_disable_background_merge; |
| 100 | +SET GLOBAL innodb_disable_background_merge = ON; |
| 101 | +set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug; |
| 102 | +set global innodb_disable_resize_buffer_pool_debug = OFF; |
| 103 | +set @before_innodb_buffer_pool_size = @@innodb_buffer_pool_size; |
| 104 | +set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size; |
| 105 | +set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size * 2; |
| 106 | +set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size; |
| 107 | +set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size; |
| 108 | +SET GLOBAL innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize; |
| 109 | +SET GLOBAL innodb_disable_background_merge = @save_disable; |
0 commit comments