mirror of
https://github.com/MariaDB/server.git
synced 2025-07-16 00:42:55 +03:00
Fix that one can run rpl_binlog_errors with --debug
This commit is contained in:
@ -28,7 +28,7 @@ ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
|
||||
show binary logs;
|
||||
Log_name File_size
|
||||
master-bin.000001 #
|
||||
SET GLOBAL debug_dbug="";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
RESET MASTER;
|
||||
###################### TEST #3
|
||||
CREATE TABLE t1 (a INT);
|
||||
@ -42,7 +42,7 @@ show binary logs;
|
||||
Log_name File_size
|
||||
master-bin.000001 #
|
||||
master-bin.000002 #
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
DELETE FROM t2;
|
||||
RESET MASTER;
|
||||
###################### TEST #4
|
||||
@ -54,7 +54,7 @@ ERROR HY000: Can't generate a unique log-filename master-bin.(1-999)
|
||||
SELECT count(*) FROM t2;
|
||||
count(*)
|
||||
1
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
DELETE FROM t2;
|
||||
RESET MASTER;
|
||||
###################### TEST #5
|
||||
@ -64,7 +64,7 @@ LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug_46166-2.data' INTO TABLE t2;
|
||||
SELECT count(*) FROM t2;
|
||||
count(*)
|
||||
1
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
DELETE FROM t2;
|
||||
RESET MASTER;
|
||||
###################### TEST #6
|
||||
@ -81,7 +81,7 @@ SELECT count(*) FROM t2;
|
||||
count(*)
|
||||
3
|
||||
SET AUTOCOMMIT= 1;
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
DELETE FROM t2;
|
||||
RESET MASTER;
|
||||
###################### TEST #7
|
||||
@ -97,7 +97,7 @@ SELECT count(*) FROM t4;
|
||||
count(*)
|
||||
1
|
||||
### check that the incident event is written to the current log
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
include/show_binlog_events.inc
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Incident # # #1 (LOST_EVENTS)
|
||||
@ -144,7 +144,7 @@ count(*)
|
||||
SELECT count(*) FROM t2;
|
||||
count(*)
|
||||
0
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
###################### TEST #9
|
||||
SET GLOBAL debug_dbug="+d,error_unique_log_filename";
|
||||
SET SQL_LOG_BIN=0;
|
||||
@ -167,7 +167,7 @@ SELECT count(*) FROM t4;
|
||||
count(*)
|
||||
0
|
||||
SET SQL_LOG_BIN=1;
|
||||
SET GLOBAL debug_dbug="-d,error_unique_log_filename";
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
###################### TEST #10
|
||||
call mtr.add_suppression("MSYQL_BIN_LOG::open failed to sync the index file.");
|
||||
call mtr.add_suppression("Could not open .*");
|
||||
@ -215,7 +215,6 @@ DELETE FROM t4;
|
||||
DELETE FROM t2;
|
||||
DROP TABLE t5;
|
||||
include/rpl_restart_server.inc [server_number=1]
|
||||
SET GLOBAL debug_dbug= @old_debug;
|
||||
DROP TABLE t1, t2, t4;
|
||||
RESET MASTER;
|
||||
include/start_slave.inc
|
||||
@ -271,7 +270,6 @@ include/rpl_restart_server.inc [server_number=2]
|
||||
include/stop_slave_sql.inc
|
||||
Warnings:
|
||||
Note 1255 Slave already has been stopped
|
||||
SET GLOBAL debug_dbug=@old_debug;
|
||||
RESET SLAVE;
|
||||
RESET MASTER;
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user