summaryrefslogtreecommitdiff
path: root/mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt
diff options
context:
space:
mode:
authorAndrei Elkin <aelkin@mysql.com>2009-03-26 10:25:06 +0200
committerAndrei Elkin <aelkin@mysql.com>2009-03-26 10:25:06 +0200
commit21cc7d5a2582f5baa61c936beab72015027cfdc0 (patch)
tree00d71846a756dc8f5f2eb2fce38b14c532c26894 /mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt
parent583390388916e21b9008fdc3871df9f1304bf8c2 (diff)
downloadmariadb-git-21cc7d5a2582f5baa61c936beab72015027cfdc0.tar.gz
Bug#38205 Row-based Replication (RBR) causes inconsistencies: HA_ERR_FOUND_DUP
Bug#319 if while a non-transactional slave is replicating a transaction possible problem It is impossible to roll back a mixed engines transaction when one of the engine is non-transaction. In replication that fact is crucial because the slave can not safely re-apply a transction that was interrupted with STOP SLAVE. Fixed with making STOP SLAVE not be effective immediately in the case the current group of replication events has modified a non-transaction table. In order for slave to leave either the group needs finishing or the user issues KILL QUERY|CONNECTION slave_thread_id. mysql-test/suite/bugs/r/rpl_bug38205.result: bug#38205 non-deterministic part of tests results. mysql-test/suite/bugs/t/rpl_bug38205.test: bug#38205 non-deterministic part of tests. mysql-test/suite/rpl/r/rpl_start_stop_slave.result: bug#38205 deterministic part of tests results. mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt: increasing `innodb_lock_wait_timeout' to make the test pass on slow env w/o timeout expired issue. mysql-test/suite/rpl/t/rpl_start_stop_slave.test: bug#38205 deterministic part of tests. sql/log_event.cc: Augmenting row-based events applying with the notion of thd->transaction.{all,stmt}.modified_non_trans_table. The pair is set and reset according to its specification for the mixed transaction processing. Particualry, once `modified_non_trans_table' is set in the row-events processing loop, it will remain till the commit of the transaction. sql/slave.cc: Consulting `thd->transaction.all.modified_non_trans_table' to decide whether to terminate by the sql thread or to continue even though the sql thread might have been STOP-ed (rli->abort_slave).
Diffstat (limited to 'mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt')
-rw-r--r--mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt b/mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt
new file mode 100644
index 00000000000..00ea161cd6e
--- /dev/null
+++ b/mysql-test/suite/rpl/t/rpl_start_stop_slave-slave.opt
@@ -0,0 +1 @@
+--innodb_lock_wait_timeout=60