Commit 665c01d1 authored by Jan Lindström's avatar Jan Lindström

MDEV-15794 : Test failure on galera.galera_var_retry_autocommit

Add expected error.
parent 82f45ef5
...@@ -12,9 +12,9 @@ connection node_2; ...@@ -12,9 +12,9 @@ connection node_2;
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
connection node_1; connection node_1;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 0 COUNT(*)
1 0
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
DROP TABLE t1; DROP TABLE t1;
connection node_1; connection node_1;
...@@ -27,9 +27,9 @@ SET DEBUG_SYNC = 'now WAIT_FOR before_cert'; ...@@ -27,9 +27,9 @@ SET DEBUG_SYNC = 'now WAIT_FOR before_cert';
connection node_2; connection node_2;
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
connection node_1; connection node_1;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 1 COUNT(*)
1 0
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
DROP TABLE t1; DROP TABLE t1;
connection node_1; connection node_1;
...@@ -44,18 +44,17 @@ connection node_2; ...@@ -44,18 +44,17 @@ connection node_2;
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
connection node_1a; connection node_1a;
SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached'; SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached';
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 0 COUNT(*)
1 0
SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue WAIT_FOR before_cert'; SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue WAIT_FOR before_cert';
connection node_2; connection node_2;
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
connection node_1a; connection node_1a;
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 0 COUNT(*)
1 0
connection node_1; connection node_1;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
SET GLOBAL debug_dbug = NULL; SET GLOBAL debug_dbug = NULL;
DROP TABLE t1; DROP TABLE t1;
...@@ -66,8 +65,8 @@ SET GLOBAL debug_dbug = '+d,sync.wsrep_retry_autocommit'; ...@@ -66,8 +65,8 @@ SET GLOBAL debug_dbug = '+d,sync.wsrep_retry_autocommit';
SET DEBUG_SYNC = 'wsrep_before_certification SIGNAL before_cert WAIT_FOR continue EXECUTE 64'; SET DEBUG_SYNC = 'wsrep_before_certification SIGNAL before_cert WAIT_FOR continue EXECUTE 64';
INSERT INTO t1 VALUES (5); INSERT INTO t1 VALUES (5);
connection node_1; connection node_1;
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) = 1 COUNT(*)
1 1
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
SET GLOBAL debug_dbug = NULL; SET GLOBAL debug_dbug = NULL;
......
...@@ -30,7 +30,7 @@ TRUNCATE TABLE t1; ...@@ -30,7 +30,7 @@ TRUNCATE TABLE t1;
--connection node_1 --connection node_1
--error ER_LOCK_DEADLOCK --error ER_LOCK_DEADLOCK
--reap --reap
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) FROM t1;
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
DROP TABLE t1; DROP TABLE t1;
...@@ -54,8 +54,9 @@ SET DEBUG_SYNC = 'now WAIT_FOR before_cert'; ...@@ -54,8 +54,9 @@ SET DEBUG_SYNC = 'now WAIT_FOR before_cert';
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
--connection node_1 --connection node_1
--error 0,ER_LOCK_DEADLOCK
--reap --reap
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) FROM t1;
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
DROP TABLE t1; DROP TABLE t1;
...@@ -82,17 +83,17 @@ TRUNCATE TABLE t1; ...@@ -82,17 +83,17 @@ TRUNCATE TABLE t1;
--connection node_1a --connection node_1a
SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached'; SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached';
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) FROM t1;
SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue WAIT_FOR before_cert'; SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue WAIT_FOR before_cert';
--connection node_2 --connection node_2
TRUNCATE TABLE t1; TRUNCATE TABLE t1;
--connection node_1a --connection node_1a
SELECT COUNT(*) = 0 FROM t1; SELECT COUNT(*) FROM t1;
--connection node_1 --connection node_1
--error ER_LOCK_DEADLOCK --error 0,ER_LOCK_DEADLOCK
--reap --reap
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
...@@ -126,7 +127,7 @@ while ($count) ...@@ -126,7 +127,7 @@ while ($count)
--connection node_1a --connection node_1a
SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached'; SET DEBUG_SYNC = 'now WAIT_FOR wsrep_retry_autocommit_reached';
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) FROM t1;
SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue'; SET DEBUG_SYNC = 'now SIGNAL wsrep_retry_autocommit_continue';
--dec $count --dec $count
...@@ -135,8 +136,9 @@ while ($count) ...@@ -135,8 +136,9 @@ while ($count)
--enable_query_log --enable_query_log
--connection node_1 --connection node_1
--error 0,ER_LOCK_DEADLOCK
--reap --reap
SELECT COUNT(*) = 1 FROM t1; SELECT COUNT(*) FROM t1;
SET DEBUG_SYNC = 'RESET'; SET DEBUG_SYNC = 'RESET';
SET GLOBAL debug_dbug = NULL; SET GLOBAL debug_dbug = NULL;
......
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