mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#13545447 RPL_ROTATE_LOGS FAILS DUE TO CONCURRENCY ISSUES IN REP. CODE
RPL_ROTATE_LOGS has been failing sporadically in what seems a problem related to routines that update the coordinates. However, the test lacks proper assert statments and because of this the debug information upon failure simply points to the content mismatch between the test and the result file. Not as a solution, but as a improvement to the test to better debug this failure, new assert statments were added to the test. @rpl_rotate_logs.test Added new assert statments reducing the dependency on the result file. @rpl_rotate_logs.result Added new content to the result file to match the test changes
This commit is contained in:
@ -17,10 +17,8 @@ insert into t1 values('Could not break slave'),('Tried hard');
|
||||
Master_Log_File = 'master-bin.000001'
|
||||
Relay_Master_Log_File = 'master-bin.000001'
|
||||
include/check_slave_is_running.inc
|
||||
select * from t1;
|
||||
s
|
||||
Could not break slave
|
||||
Tried hard
|
||||
include/assert.inc [Table t1 should contain the first inserted line]
|
||||
include/assert.inc [Table t1 should contain the second inserted line]
|
||||
flush logs;
|
||||
create table t2(m int not null auto_increment primary key);
|
||||
insert into t2 values (34),(67),(123);
|
||||
@ -31,9 +29,7 @@ master-bin.000001 #
|
||||
master-bin.000002 #
|
||||
master-bin.000003 #
|
||||
create table t3 select * from temp_table;
|
||||
select * from t3;
|
||||
a
|
||||
testing temporary tables
|
||||
include/assert.inc [Data in t3 should be equal to temp_table]
|
||||
drop table temp_table, t3;
|
||||
insert into t2 values(1234);
|
||||
set insert_id=1234;
|
||||
@ -60,19 +56,15 @@ insert into t2 values (65);
|
||||
Master_Log_File = 'master-bin.000003'
|
||||
Relay_Master_Log_File = 'master-bin.000003'
|
||||
include/check_slave_is_running.inc
|
||||
select * from t2;
|
||||
m
|
||||
34
|
||||
65
|
||||
67
|
||||
123
|
||||
1234
|
||||
include/assert.inc [Table t2 should still contain the first inserted line after creation]
|
||||
include/assert.inc [Table t2 should contain the line inserted after the purge]
|
||||
include/assert.inc [Table t2 should still contain the second insert line after creation]
|
||||
include/assert.inc [Table t2 should still contain the third inserted line after creation]
|
||||
include/assert.inc [Table t2 should still contain the line from the duplicated key test]
|
||||
create temporary table temp_table (a char(80) not null);
|
||||
insert into temp_table values ("testing temporary tables part 2");
|
||||
create table t3 (n int);
|
||||
select count(*) from t3 where n >= 4;
|
||||
count(*)
|
||||
100
|
||||
include/assert.inc [Table t3 should contain 100 lines on the master]
|
||||
create table t4 select * from temp_table;
|
||||
show binary logs;
|
||||
Log_name File_size
|
||||
@ -85,16 +77,12 @@ master-bin.000008 #
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000008 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
select * from t4;
|
||||
a
|
||||
testing temporary tables part 2
|
||||
include/assert.inc [Data in t4 should be equal to temp_table]
|
||||
Master_Log_File = 'master-bin.000008'
|
||||
Relay_Master_Log_File = 'master-bin.000008'
|
||||
include/check_slave_is_running.inc
|
||||
lock tables t3 read;
|
||||
select count(*) from t3 where n >= 4;
|
||||
count(*)
|
||||
100
|
||||
include/assert.inc [Table t3 should contain 100 lines on the slave]
|
||||
unlock tables;
|
||||
drop table if exists t1,t2,t3,t4;
|
||||
End of 4.1 tests
|
||||
|
Reference in New Issue
Block a user