Commit fa5be1d3 authored by Alexander Barkov's avatar Alexander Barkov

Fixed that sql_sequence.binlog failed sporadically.

parent 0177a9c7
...@@ -12,20 +12,19 @@ select next value for s1, min_value from s1 where max_value> 4; ...@@ -12,20 +12,19 @@ select next value for s1, min_value from s1 where max_value> 4;
next value for s1 min_value next value for s1 min_value
4 1 4 1
drop sequence s1; drop sequence s1;
"Runnig SHOW BINLOG EVENTS" include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info Log_name Pos Event_type Server_id End_log_pos Info
# # Gtid 1 # GTID #-#-# master-bin.000001 # Gtid # # GTID #-#-#
# # Query 1 # use `test`; create or replace sequence s1 cache 3 master-bin.000001 # Query # # use `test`; create or replace sequence s1 cache 3
# # Gtid 1 # BEGIN GTID #-#-# master-bin.000001 # Gtid # # BEGIN GTID #-#-#
# # Annotate_rows 1 # select next value for s1, min_value from s1 where max_value> 1 master-bin.000001 # Annotate_rows # # select next value for s1, min_value from s1 where max_value> 1
# # Table_map 1 # table_id: 30 (test.s1) master-bin.000001 # Table_map # # table_id: # (test.s1)
# # Write_rows_v1 1 # table_id: 30 flags: STMT_END_F master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
# # Query 1 # COMMIT master-bin.000001 # Query # # COMMIT
# # Gtid 1 # BEGIN GTID #-#-# master-bin.000001 # Gtid # # BEGIN GTID #-#-#
# # Annotate_rows 1 # select next value for s1, min_value from s1 where max_value> 4 master-bin.000001 # Annotate_rows # # select next value for s1, min_value from s1 where max_value> 4
# # Table_map 1 # table_id: 30 (test.s1) master-bin.000001 # Table_map # # table_id: # (test.s1)
# # Write_rows_v1 1 # table_id: 30 flags: STMT_END_F master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F
# # Query 1 # COMMIT master-bin.000001 # Query # # COMMIT
# # Gtid 1 # GTID #-#-# master-bin.000001 # Gtid # # GTID #-#-#
# # Query 1 # use `test`; DROP TABLE `s1` /* generated by server */ master-bin.000001 # Query # # use `test`; DROP TABLE `s1` /* generated by server */
RESET MASTER;
...@@ -6,9 +6,10 @@ ...@@ -6,9 +6,10 @@
# Testing binary logging of sequences # Testing binary logging of sequences
# #
--let $pos=`select $binlog_start_pos + 73` --disable_query_log
--let $binlog_file=query_get_value(SHOW MASTER STATUS, File, 1) reset master; # get rid of previous tests binlog
--let $binlog_start=query_get_value(SHOW MASTER STATUS, Position, 1) --enable_query_log
create or replace sequence s1 cache 3; create or replace sequence s1 cache 3;
select next value for s1, min_value from s1 where max_value> 1; select next value for s1, min_value from s1 where max_value> 1;
...@@ -17,10 +18,5 @@ select next value for s1, min_value from s1 where max_value> 3; ...@@ -17,10 +18,5 @@ select next value for s1, min_value from s1 where max_value> 3;
select next value for s1, min_value from s1 where max_value> 4; select next value for s1, min_value from s1 where max_value> 4;
drop sequence s1; drop sequence s1;
--echo "Runnig SHOW BINLOG EVENTS" --let $binlog_file = LAST
--replace_column 1 # 2 # 5 # source include/show_binlog_events.inc;
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VERSIONS/
--disable_query_log
--eval SHOW BINLOG EVENTS FROM $binlog_start;
--enable_query_log
RESET MASTER;
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