mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Galera MTR Tests: Attempt to remove rare sporadic failures in galera_transaction_replay.test by waiting for all transactions to get blocked before proceeding.
This commit is contained in:
parent
f8b724db28
commit
d0e24c6799
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,14 @@ SET SESSION wsrep_sync_wait = 0;
|
|||
--connection node_2
|
||||
UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
|
||||
|
||||
# Wait for both transactions to be blocked
|
||||
--connection node_1a
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'System lock';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'init' AND INFO = 'COMMIT';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
# Unblock the commit
|
||||
--connection node_1a
|
||||
SET GLOBAL wsrep_provider_options = 'dbug=';
|
||||
|
|
Loading…
Reference in a new issue