--source include/have_innodb.inc
|
--source include/have_debug.inc
|
--source include/not_embedded.inc
|
--source include/have_example_key_management_plugin.inc
|
|
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
|
let MYSQLD_DATADIR=`select @@datadir`;
|
|
create table t1 (f1 int primary key, f2 blob)engine=innodb stats_persistent=0;
|
|
start transaction;
|
insert into t1 values(1, repeat('#',12));
|
insert into t1 values(2, repeat('+',12));
|
insert into t1 values(3, repeat('/',12));
|
insert into t1 values(4, repeat('-',12));
|
insert into t1 values(5, repeat('.',12));
|
commit work;
|
|
# Slow shutdown and restart to make sure ibuf merge is finished
|
SET GLOBAL innodb_fast_shutdown = 0;
|
let $shutdown_timeout=;
|
let $restart_parameters=--debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0;
|
--source include/restart_mysqld.inc
|
--source ../../suite/innodb/include/no_checkpoint_start.inc
|
select space into @space_id from information_schema.innodb_sys_tablespaces where name="test/t1";
|
begin;
|
insert into t1 values (6, repeat('%', 400));
|
|
|
set global innodb_saved_page_number_debug = 0;
|
set global innodb_fil_make_page_dirty_debug = @space_id;
|
|
set global innodb_saved_page_number_debug = 1;
|
set global innodb_fil_make_page_dirty_debug = @space_id;
|
|
set global innodb_buf_flush_list_now = 1;
|
--let CLEANUP_IF_CHECKPOINT=drop table t1, unexpected_checkpoint;
|
--source ../../suite/innodb/include/no_checkpoint_end.inc
|
|
perl;
|
use IO::Handle;
|
my $fname= "$ENV{'MYSQLD_DATADIR'}test/t1.ibd";
|
open(FILE, "+<", $fname) or die;
|
FILE->autoflush(1);
|
binmode FILE;
|
print FILE chr(0) x ($ENV{'INNODB_PAGE_SIZE'});
|
seek(FILE, $ENV{'INNODB_PAGE_SIZE'}, SEEK_SET);
|
print FILE chr(0) x ($ENV{'INNODB_PAGE_SIZE'});
|
close FILE;
|
EOF
|
let $restart_parameters=;
|
--source include/start_mysqld.inc
|
check table t1;
|
select f1, f2 from t1;
|
|
According to thiru, there are similar failures also in other tests, such as encryption.innodb-encryption-alter. We have been unable to reproduce the issue so far.