mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Bug #38205 Row-based Replication (RBR) causes inconsistencies: HA_ERR_FOUND_DUPP_KEY
Bug#319 if while a non-transactional slave is replicating a transaction possible problem only testing related: addressing reviewers' comments.
This commit is contained in:
@@ -44,7 +44,7 @@ zero
|
||||
0
|
||||
stop slave sql_thread;
|
||||
rollback;
|
||||
*** sql thread is running: No ***
|
||||
*** sql thread is *not* running: No ***
|
||||
*** the prove: the stopped slave has rolled back the current transaction ***
|
||||
zero
|
||||
0
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Bug #38205 Row-based Replication (RBR) causes inconsistencies: HA_ERR_FOUND_DUPP_KEY
|
||||
# Bug#319 if while a non-transactional slave is replicating a transaction possible problem
|
||||
#
|
||||
# Verifying the fact that STOP SLAVE in the middle of a group execution waits
|
||||
# for the end of the group before the slave sql thread will stop.
|
||||
@@ -143,7 +144,7 @@ connection slave1;
|
||||
reap;
|
||||
source include/wait_for_slave_sql_to_stop.inc;
|
||||
let $sql_status= query_get_value(SHOW SLAVE STATUS, Slave_SQL_Running, 1);
|
||||
--echo *** sql thread is running: $sql_status ***
|
||||
--echo *** sql thread is *not* running: $sql_status ***
|
||||
|
||||
let $pos1_slave= query_get_value(SHOW SLAVE STATUS, Exec_Master_Log_Pos, 1);
|
||||
|
||||
|
@@ -28,7 +28,7 @@ zero
|
||||
0
|
||||
stop slave;
|
||||
rollback;
|
||||
*** sql thread is running: No ***
|
||||
*** sql thread is *not* running: No ***
|
||||
*** the prove: the stopped slave has finished the current transaction ***
|
||||
five
|
||||
5
|
||||
@@ -36,5 +36,5 @@ zero
|
||||
0
|
||||
one
|
||||
1
|
||||
start slave;
|
||||
include/start_slave.inc
|
||||
drop table t1i, t2m;
|
||||
|
@@ -39,6 +39,7 @@ sync_with_master;
|
||||
|
||||
#
|
||||
# Bug#38205 Row-based Replication (RBR) causes inconsistencies...
|
||||
# Bug#319 if while a non-transactional slave is replicating a transaction...
|
||||
#
|
||||
# Verifying that STOP SLAVE does not interrupt excution of a group
|
||||
# execution of events if the group can not roll back.
|
||||
@@ -93,14 +94,13 @@ connection slave1;
|
||||
reap;
|
||||
source include/wait_for_slave_to_stop.inc;
|
||||
let $sql_status= query_get_value(SHOW SLAVE STATUS, Slave_SQL_Running, 1);
|
||||
--echo *** sql thread is running: $sql_status ***
|
||||
--echo *** sql thread is *not* running: $sql_status ***
|
||||
|
||||
|
||||
connection master;
|
||||
let $pos1_master= query_get_value(SHOW MASTER STATUS, Position, 1);
|
||||
|
||||
connection slave;
|
||||
source include/wait_for_slave_sql_to_stop.inc;
|
||||
|
||||
let $pos1_slave= query_get_value(SHOW SLAVE STATUS, Exec_Master_Log_Pos, 1);
|
||||
|
||||
@@ -112,7 +112,7 @@ eval select $pos1_master - $pos1_slave as zero;
|
||||
eval select $pos1_slave > $pos0_slave as one;
|
||||
--enable_query_log
|
||||
|
||||
start slave;
|
||||
source include/start_slave.inc;
|
||||
|
||||
# clean-up
|
||||
connection master;
|
||||
|
Reference in New Issue
Block a user