Skip to content

Commit 2ead5bd

Browse files
author
Jan Lindström
committed
MDEV-20886 galera.MDEV-20225
Fix test MDEV-20225.
1 parent 7dfa116 commit 2ead5bd

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
GCF-1081 : MDEV-18283 Galera test failure on galera.GCF-1081
1414
GCF-939 : MDEV-21520 galera.GCF-939
15-
MDEV-20225 : MDEV-20886 galera.MDEV-20225
1615
MW-328A : MDEV-22666 galera.MW-328A MTR failed: "Semaphore wait has lasted > 600 seconds" and do not release port 16002
1716
MW-328B : MDEV-22666 galera.MW-328A MTR failed: "Semaphore wait has lasted > 600 seconds" and do not release port 16002
1817
MW-329 : MDEV-19962 Galera test failure on MW-329

mysql-test/suite/galera/r/MDEV-20225.result

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ DROP TRIGGER tr1;
1111
connection node_2;
1212
connection node_1;
1313
INSERT INTO t1 VALUES (NULL);
14-
connection node_2;
14+
connection node_2a;
1515
SET GLOBAL debug_dbug = 'RESET';
1616
SET DEBUG_SYNC = 'now SIGNAL signal.mdev_20225_continue';
1717
SET DEBUG_SYNC = 'RESET';
1818
SET GLOBAL wsrep_slave_threads = 1;
19+
connection node_2;
1920
SHOW TRIGGERS;
2021
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
2122
DROP TABLE t1;

mysql-test/suite/galera/t/MDEV-20225.test

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ INSERT INTO t1 VALUES (NULL);
3434
# so there is no sync point or condition to wait.
3535
--sleep 1
3636

37-
--connection node_2
37+
--let $galera_connection_name = node_2a
38+
--let $galera_server_number = 2
39+
--source include/galera_connect.inc
40+
--connection node_2a
3841
SET GLOBAL debug_dbug = 'RESET';
3942
SET DEBUG_SYNC = 'now SIGNAL signal.mdev_20225_continue';
4043
SET DEBUG_SYNC = 'RESET';
4144
SET GLOBAL wsrep_slave_threads = 1;
4245

46+
--connection node_2
4347
# Trigger should now be dropped on node_2.
4448
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_NAME like '%tr1'
4549
--source include/wait_condition.inc

0 commit comments

Comments
 (0)