Commit f78eb52f authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Jan Lindström

Make test galera_sr.GCF-1018 deterministic (#1245)

Disabled autocommit retry (set wsrep_retry_autocommit to 0) so that BF
aborted autocommit statement always results in ER_LOCK_DEADLOCK.
parent 0bc42602
......@@ -9,6 +9,7 @@ connection node_2a;
SET SESSION wsrep_sync_wait = 0;
SET GLOBAL wsrep_provider_options = 'dbug=d,after_certify_apply_monitor_enter';
connection node_2;
SET SESSION wsrep_retry_autocommit = 0;
SET SESSION wsrep_trx_fragment_size = 64;
DELETE FROM t1 ORDER BY f1 DESC LIMIT 2;;
connection node_2a;
......@@ -20,5 +21,5 @@ connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=after_certify_apply_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2;
Got one of the listed errors
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
DROP TABLE t1;
......@@ -18,6 +18,7 @@ SET SESSION wsrep_sync_wait = 0;
--source include/galera_set_sync_point.inc
--connection node_2
SET SESSION wsrep_retry_autocommit = 0;
SET SESSION wsrep_trx_fragment_size = 64;
--send DELETE FROM t1 ORDER BY f1 DESC LIMIT 2;
......@@ -32,7 +33,7 @@ INSERT INTO t1 (f2) VALUES ('d'),('e');
--source include/galera_clear_sync_point.inc
--connection node_2
--error ER_LOCK_DEADLOCK, ER_QUERY_INTERRUPTED
--error ER_LOCK_DEADLOCK
--reap
DROP TABLE t1;
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