diff options
author | unknown <tomas@whalegate.ndb.mysql.com> | 2007-04-03 14:49:57 +0200 |
---|---|---|
committer | unknown <tomas@whalegate.ndb.mysql.com> | 2007-04-03 14:49:57 +0200 |
commit | c2cde303009cce9a86ea94883a6662e296138376 (patch) | |
tree | 080a94eff1fc3a30dcc85938a6f489b66da58042 /mysql-test | |
parent | e5a81746de94d77e18d2b70a7410348dd6fc7624 (diff) | |
download | mariadb-git-c2cde303009cce9a86ea94883a6662e296138376.tar.gz |
Bug #21494 Master Cluster MySQLD is point of failure that can lead to mismatch slave data
- insert gap event on cluster connect
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/ndb_binlog_discover.result | 17 | ||||
-rw-r--r-- | mysql-test/t/ndb_binlog_discover.test | 3 |
2 files changed, 14 insertions, 6 deletions
diff --git a/mysql-test/r/ndb_binlog_discover.result b/mysql-test/r/ndb_binlog_discover.result index 4806047a016..cf6875c5624 100644 --- a/mysql-test/r/ndb_binlog_discover.result +++ b/mysql-test/r/ndb_binlog_discover.result @@ -3,10 +3,15 @@ create table t1 (a int key) engine=ndb; reset master; show binlog events from <binlog_start>; Log_name Pos Event_type Server_id End_log_pos Info -master-bin.000001 # Query # # BEGIN -master-bin.000001 # Table_map # # table_id: # (test.t1) -master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status) -master-bin.000001 # Write_rows # # table_id: # -master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F -master-bin.000001 # Query # # COMMIT +master-bin.000001 # Incident # # #1 (LOST_EVENTS) +master-bin.000001 # Rotate # # master-bin.000002;pos=4 +PURGE MASTER LOGS TO 'master-bin.000002'; +show binlog events from <binlog_start>; +Log_name Pos Event_type Server_id End_log_pos Info +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; diff --git a/mysql-test/t/ndb_binlog_discover.test b/mysql-test/t/ndb_binlog_discover.test index 88126cc1c23..7cd817f81b9 100644 --- a/mysql-test/t/ndb_binlog_discover.test +++ b/mysql-test/t/ndb_binlog_discover.test @@ -30,4 +30,7 @@ while ($mysql_errno) --enable_query_log --source include/show_binlog_events.inc +PURGE MASTER LOGS TO 'master-bin.000002'; + +--source include/show_binlog_events.inc drop table t1; |