Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
74d52ded
Commit
74d52ded
authored
Dec 05, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix binlog_encryption.binlog_incident test
parent
76546a09
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
15 deletions
+4
-15
mysql-test/extra/binlog_tests/binlog_incident-master.opt
mysql-test/extra/binlog_tests/binlog_incident-master.opt
+0
-0
mysql-test/extra/rpl_tests/multisource.inc
mysql-test/extra/rpl_tests/multisource.inc
+1
-10
mysql-test/include/binlog_start_pos.inc
mysql-test/include/binlog_start_pos.inc
+2
-2
mysql-test/suite/binlog_encryption/binlog_incident.result
mysql-test/suite/binlog_encryption/binlog_incident.result
+1
-1
mysql-test/suite/binlog_encryption/binlog_row_annotate.result
...l-test/suite/binlog_encryption/binlog_row_annotate.result
+0
-1
mysql-test/suite/binlog_encryption/disabled.def
mysql-test/suite/binlog_encryption/disabled.def
+0
-1
No files found.
mysql-test/
suite/binlog/t
/binlog_incident-master.opt
→
mysql-test/
extra/binlog_tests
/binlog_incident-master.opt
View file @
74d52ded
File moved
mysql-test/extra/rpl_tests/multisource.inc
View file @
74d52ded
...
...
@@ -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'
);
...
...
mysql-test/include/binlog_start_pos.inc
View file @
74d52ded
...
...
@@ -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`
;
mysql-test/suite/binlog_encryption/binlog_incident.result
View file @
74d52ded
...
...
@@ -10,4 +10,4 @@ REPLACE INTO t1 VALUES (4);
DROP TABLE t1;
FLUSH LOGS;
Contain RELOAD DATABASE
0
1
mysql-test/suite/binlog_encryption/binlog_row_annotate.result
View file @
74d52ded
...
...
@@ -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
...
...
mysql-test/suite/binlog_encryption/disabled.def
View file @
74d52ded
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment