Commit 74d52ded authored by Sergei Golubchik's avatar Sergei Golubchik

fix binlog_encryption.binlog_incident test

parent 76546a09
......@@ -4,20 +4,11 @@
# Please check all dependent tests after modifying it
#
# Usage:
# --let $binlog_extra_length= X # optional, default 0
# --source extra/rpl_tests/multisource.inc
#
# By default, the script expects the length of the 2nd binary log to be
# $binlog_start_pos + length(Gtid_list event) + 2 x length(Binlog_checkpoint event)
# Some tests can have specific configuration which would change it,
# e.g. for encrypted binlogs there will be additional event
# Start_encryption of the length of 36.
# binlog_extra_length should compensate for the difference.
if (!$binlog_extra_length)
{
--let $binlog_extra_length= 0
}
#
# Test basic replication functionality
......@@ -244,7 +235,7 @@ flush logs;
--connection master1
purge binary logs to 'master-bin.000002';
# Additional events: 39 (Gtid_list) + 2 x 40 (Binlog_checkpoint) = 119
let filesize=`select $binlog_start_pos+119+$binlog_extra_length`;
let filesize=`select $binlog_start_pos+119`;
--replace_result $filesize filesize
show binary logs;
insert into t1 (f1) values ('four');
......
......@@ -21,8 +21,8 @@
#
##############################################################################
let $binlog_start_pos=249;
--disable_query_log
SET @binlog_start_pos=249;
set @binlog_start_pos=249 + @@encrypt_binlog * 36;
--enable_query_log
let $binlog_start_pos=`select @binlog_start_pos`;
......@@ -10,4 +10,4 @@ REPLACE INTO t1 VALUES (4);
DROP TABLE t1;
FLUSH LOGS;
Contain RELOAD DATABASE
0
1
......@@ -8,7 +8,6 @@
#####################################################################################
show binlog events in 'master-bin.000001' from <start_pos>;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Start_encryption 1 #
master-bin.000001 # Gtid_list 1 # []
master-bin.000001 # Binlog_checkpoint 1 # master-bin.000001
master-bin.000001 # Gtid 1 # GTID 0-1-1
......
binlog_incident : MDEV-11319 - mysqlbinlog crash or failure
encrypted_master_lost_key : MDEV-11323 - unspecified behavior for IO thread
rpl_checksum_cache : MDEV-11486 - sporadic failure in IO thread
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment