-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-16021: galera mtr test galera_evs_suspect_timeout crashed
Crash was timeout crash. Add correct waits for connections, wsrep sync waits and auto increment offset save and restore.
- Loading branch information
Jan Lindström
committed
May 17, 2019
1 parent
61469b3
commit c84f390
Showing
2 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
21 changes: 13 additions & 8 deletions
21
mysql-test/suite/galera_3nodes/r/galera_evs_suspect_timeout.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
SET GLOBAL wsrep_provider_options = 'evs.inactive_timeout=PT100M; evs.suspect_timeout=PT1S'; | ||
SET GLOBAL wsrep_provider_options = 'evs.inactive_timeout=PT100M; evs.suspect_timeout=PT1S'; | ||
Suspending node ... | ||
SET SESSION wsrep_sync_wait = 0; | ||
SET SESSION wsrep_sync_wait=0; | ||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
VARIABLE_VALUE = 2 | ||
1 | ||
CREATE TABLE t1 (f1 INTEGER); | ||
CREATE TABLE t1 (f1 INTEGER) engine=InnoDB; | ||
INSERT INTO t1 VALUES (1); | ||
SET SESSION wsrep_sync_wait = 0; | ||
SET SESSION wsrep_sync_wait=0; | ||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'; | ||
VARIABLE_VALUE = 2 | ||
1 | ||
SET SESSION wsrep_sync_wait = DEFAULT; | ||
SELECT COUNT(*) = 1 FROM t1; | ||
COUNT(*) = 1 | ||
SET SESSION wsrep_sync_wait = 15; | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
1 | ||
DROP TABLE t1; | ||
Resuming node ... | ||
CALL mtr.add_suppression("WSREP: gcs_caused() returned -1 \\(Operation not permitted\\)"); | ||
CALL mtr.add_suppression("WSREP: gcs_caused.*"); | ||
CALL mtr.add_suppression("WSREP: gcs/src/gcs_core.cpp:core_handle_uuid_msg.*"); | ||
SET SESSION wsrep_sync_wait = 15; | ||
SELECT COUNT(*) FROM t1; | ||
COUNT(*) | ||
1 | ||
DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters