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
85f10224
Commit
85f10224
authored
Jun 29, 2019
by
Sachin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix galera_log_bin
Cleanup the nodes before and after test run
parent
49ec78ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
47 deletions
+54
-47
mysql-test/suite/galera/r/galera_log_bin.result
mysql-test/suite/galera/r/galera_log_bin.result
+42
-39
mysql-test/suite/galera/t/galera_log_bin.test
mysql-test/suite/galera/t/galera_log_bin.test
+12
-8
No files found.
mysql-test/suite/galera/r/galera_log_bin.result
View file @
85f10224
reset master;
reset master;
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
CREATE TABLE t2 (id INT) ENGINE=InnoDB;
...
...
@@ -10,50 +12,51 @@ SELECT COUNT(*) = 2 FROM t2;
COUNT(*) = 2
1
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
FLUSH LOGS;
SHOW BINLOG EVENTS IN 'mysqld-bin.000002' LIMIT 4,18;
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.00000
2 # Gtid # # GTID 0-1-1
mysqld-bin.00000
2
# Query # # use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
mysqld-bin.00000
2 # Gtid # # BEGIN GTID 0-1-2
mysqld-bin.00000
2
# Table_map # # table_id: # (test.t1)
mysqld-bin.00000
2
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
2 # Xid # # COMMIT /* xid=#
*/
mysqld-bin.00000
2 # Gtid # # GTID 0-1-3
mysqld-bin.00000
2
# Query # # use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
mysqld-bin.00000
2 # Gtid # # BEGIN GTID 0-1-4
mysqld-bin.00000
2
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
2
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
2 # Xid # # COMMIT /* xid=#
*/
mysqld-bin.00000
2 # Gtid # # BEGIN GTID 0-1-5
mysqld-bin.00000
2
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
2
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
2 # Xid # # COMMIT /* xid=#
*/
mysqld-bin.00000
2 # Gtid # # GTID 0-1-6
mysqld-bin.00000
2
# Query # # use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
mysqld-bin.00000
1 # Gtid # # GTID #-#-#
mysqld-bin.00000
1
# Query # # use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
mysqld-bin.00000
1 # Gtid # # BEGIN GTID #-#-#
mysqld-bin.00000
1
# Table_map # # table_id: # (test.t1)
mysqld-bin.00000
1
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
1 # Xid # # COMMIT /* XID
*/
mysqld-bin.00000
1 # Gtid # # GTID #-#-#
mysqld-bin.00000
1
# Query # # use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
mysqld-bin.00000
1 # Gtid # # BEGIN GTID #-#-#
mysqld-bin.00000
1
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
1
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
1 # Xid # # COMMIT /* XID
*/
mysqld-bin.00000
1 # Gtid # # BEGIN GTID #-#-#
mysqld-bin.00000
1
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
1
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
1 # Xid # # COMMIT /* XID
*/
mysqld-bin.00000
1 # Gtid # # GTID #-#-#
mysqld-bin.00000
1
# Query # # use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1';
COUNT(*) = 2
1
SHOW BINLOG EVENTS IN 'mysqld-bin.000003' LIMIT 3,18;
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.00000
3 # Gtid # # GTID 0-1-1
mysqld-bin.00000
3
# Query # # use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
mysqld-bin.00000
3 # Gtid # # BEGIN GTID 0-1-2
mysqld-bin.00000
3
# Table_map # # table_id: # (test.t1)
mysqld-bin.00000
3
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
3 # Xid # # COMMIT /* xid=#
*/
mysqld-bin.00000
3 # Gtid # # GTID 0-1-3
mysqld-bin.00000
3
# Query # # use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
mysqld-bin.00000
3 # Gtid # # BEGIN GTID 0-1-4
mysqld-bin.00000
3
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
3
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
3 # Xid # # COMMIT /* xid=#
*/
mysqld-bin.00000
3 # Gtid # # BEGIN GTID 0-1-5
mysqld-bin.00000
3
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
3
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
3 # Xid # # COMMIT /* xid=#
*/
mysqld-bin.00000
3 # Gtid # # GTID 0-1-6
mysqld-bin.00000
3
# Query # # use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
mysqld-bin.00000
1 # Gtid # # GTID #-#-#
mysqld-bin.00000
1
# Query # # use `test`; CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB
mysqld-bin.00000
1 # Gtid # # BEGIN GTID #-#-#
mysqld-bin.00000
1
# Table_map # # table_id: # (test.t1)
mysqld-bin.00000
1
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
1 # Xid # # COMMIT /* XID
*/
mysqld-bin.00000
1 # Gtid # # GTID #-#-#
mysqld-bin.00000
1
# Query # # use `test`; CREATE TABLE t2 (id INT) ENGINE=InnoDB
mysqld-bin.00000
1 # Gtid # # BEGIN GTID #-#-#
mysqld-bin.00000
1
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
1
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
1 # Xid # # COMMIT /* XID
*/
mysqld-bin.00000
1 # Gtid # # BEGIN GTID #-#-#
mysqld-bin.00000
1
# Table_map # # table_id: # (test.t2)
mysqld-bin.00000
1
# Write_rows_v1 # # table_id: # flags: STMT_END_F
mysqld-bin.00000
1 # Xid # # COMMIT /* XID
*/
mysqld-bin.00000
1 # Gtid # # GTID #-#-#
mysqld-bin.00000
1
# Query # # use `test`; ALTER TABLE t1 ADD COLUMN f2 INTEGER
DROP TABLE t1;
DROP TABLE t2;
#cleanup
RESET MASTER;
reset master;
mysql-test/suite/galera/t/galera_log_bin.test
View file @
85f10224
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
connection
node_1
reset
master
;
--
connection
node_2
reset
master
;
#
# Test Galera with --log-bin --log-slave-updates .
# This way the actual MySQL binary log is used,
...
...
@@ -20,20 +25,19 @@ SELECT COUNT(*) = 2 FROM t2;
--
connection
node_1
ALTER
TABLE
t1
ADD
COLUMN
f2
INTEGER
;
FLUSH
LOGS
;
--
replace_column
2
# 4 # 5 #
--
replace_regex
/
table_id
:
[
0
-
9
]
+/
table_id
:
#/ /xid=[0-9]+/xid=#/
SHOW
BINLOG
EVENTS
IN
'mysqld-bin.000002'
LIMIT
4
,
18
;
--
let
$MASTER_MYPORT
=
$NODE_MYPORT_1
--
source
include
/
show_binlog_events
.
inc
--
connection
node_2
SELECT
COUNT
(
*
)
=
2
FROM
INFORMATION_SCHEMA
.
COLUMNS
WHERE
TABLE_NAME
=
't1'
;
--
replace_column
2
# 4 # 5 #
--
replace_regex
/
table_id
:
[
0
-
9
]
+/
table_id
:
#/ /xid=[0-9]+/xid=#/
SHOW
BINLOG
EVENTS
IN
'mysqld-bin.000003'
LIMIT
3
,
18
;
--
let
$MASTER_MYPORT
=
$NODE_MYPORT_2
--
source
include
/
show_binlog_events
.
inc
DROP
TABLE
t1
;
DROP
TABLE
t2
;
--
echo
#cleanup
--
connection
node_1
RESET
MASTER
;
--
connection
node_2
reset
master
;
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