mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Bug #21494 Master Cluster MySQLD is point of failure that can lead to mismatch slave data
- insert gap event on cluster connect
This commit is contained in:
parent
6db3dbcaca
commit
6e7df50749
2 changed files with 14 additions and 6 deletions
|
@ -3,10 +3,15 @@ create table t1 (a int key) engine=ndb;
|
||||||
reset master;
|
reset master;
|
||||||
show binlog events from <binlog_start>;
|
show binlog events from <binlog_start>;
|
||||||
Log_name Pos Event_type Server_id End_log_pos Info
|
Log_name Pos Event_type Server_id End_log_pos Info
|
||||||
master-bin.000001 # Query # # BEGIN
|
master-bin.000001 # Incident # # #1 (LOST_EVENTS)
|
||||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
master-bin.000001 # Rotate # # master-bin.000002;pos=4
|
||||||
master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
|
PURGE MASTER LOGS TO 'master-bin.000002';
|
||||||
master-bin.000001 # Write_rows # # table_id: #
|
show binlog events from <binlog_start>;
|
||||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
Log_name Pos Event_type Server_id End_log_pos Info
|
||||||
master-bin.000001 # Query # # COMMIT
|
master-bin.000002 # Query # # BEGIN
|
||||||
|
master-bin.000002 # Table_map # # table_id: # (test.t1)
|
||||||
|
master-bin.000002 # Table_map # # table_id: # (mysql.ndb_apply_status)
|
||||||
|
master-bin.000002 # Write_rows # # table_id: #
|
||||||
|
master-bin.000002 # Write_rows # # table_id: # flags: STMT_END_F
|
||||||
|
master-bin.000002 # Query # # COMMIT
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
|
@ -29,5 +29,8 @@ while ($mysql_errno)
|
||||||
}
|
}
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
|
|
||||||
|
--source include/show_binlog_events.inc
|
||||||
|
PURGE MASTER LOGS TO 'master-bin.000002';
|
||||||
|
|
||||||
--source include/show_binlog_events.inc
|
--source include/show_binlog_events.inc
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue