mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-33895 : Galera test failure on galera_sr.MDEV-25718
Test was waiting INSERT-clause to make rollback but wait_condition was too tight. State could be Freeing items or Rollback. Fixed wait_condition to expect one of them.
This commit is contained in:
parent
50998a6c6f
commit
4aeba2590b
1 changed files with 3 additions and 2 deletions
|
@ -43,8 +43,9 @@ SET SESSION wsrep_sync_wait = 0;
|
|||
SET debug_sync = "now SIGNAL write_row_continue";
|
||||
|
||||
# Let's give the INSERT some time, to make sure it does rollback
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO = "INSERT INTO t1 VALUES (1)" AND STATE = "Freeing items";
|
||||
--source include/wait_condition.inc
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO = "INSERT INTO t1 VALUES (1)" AND (STATE = "Freeing items" OR STATE = 'Rollback');
|
||||
--let $wait_condition_on_error_output = SELECT INFO, STATE FROM INFORMATION_SCHEMA.PROCESSLIST
|
||||
--source include/wait_condition_with_debug.inc
|
||||
|
||||
# Resume the DDL in streaming_rollback
|
||||
SET SESSION debug_sync = "now SIGNAL wsrep_streaming_rollback_continue";
|
||||
|
|
Loading…
Reference in a new issue