Skip to content

Commit 40e55f9

Browse files
committed
MDEV-35951 : Complete freeze during MW-329 test
Better to use KILL HARD and wait until connection is really gone.
1 parent db13582 commit 40e55f9

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
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
galera_wan : MDEV-35940 Unallowed state transition: donor -> synced in galera_wan
1414
galera_vote_rejoin_ddl : MDEV-35940 Unallowed state transition: donor -> synced in galera_wan
15-
MW-329 : MDEV-35951 Complete freeze during MW-329 test
1615
galera_vote_rejoin_dml : MDEV-35964 Assertion `ist_seqno >= cc_seqno' failed in galera_vote_rejoin_dml
1716
galera_var_notify_cmd : MDEV-37257 WSREP: Notification command failed: 1 (Operation not permitted)
1817
galera_var_notify_ssl_ipv6 : MDEV-37257 WSREP: Notification command failed: 1 (Operation not permitted)

mysql-test/suite/galera/r/MW-329.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ END|
1414
connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1;
1515
connection node_1b;
1616
connection node_1;
17+
connect node_1c, 127.0.0.1, root, , test, $NODE_MYPORT_1;
18+
connection node_1c;
1719
connection node_1b;
1820
connection node_1;
1921
DROP PROCEDURE proc_insert;
2022
DROP TABLE t1;
2123
disconnect node_1b;
22-
CALL mtr.add_suppression("WSREP: .* conflict state after post commit ");
23-
set global innodb_status_output=Default;
24+
disconnect node_1c;

mysql-test/suite/galera/t/MW-329.test

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,19 @@ while ($count)
8383

8484
--connection node_1
8585
--disable_query_log
86-
--eval KILL CONNECTION $connection_id
86+
--eval KILL HARD CONNECTION $connection_id
87+
--enable_query_log
88+
--connect node_1c, 127.0.0.1, root, , test, $NODE_MYPORT_1
89+
--connection node_1c
90+
91+
--disable_query_log
92+
# Make sure connection is killed
93+
while (`SELECT COUNT(*) > 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE ID = $connection_id`)
94+
{
95+
SELECT SLEEP(1);
96+
--error 0,ER_NO_SUCH_THREAD,ER_QUERY_INTERRUPTED,ER_CONNECTION_KILLED
97+
--eval KILL HARD CONNECTION $connection_id
98+
}
8799
--enable_query_log
88100

89101
#
@@ -101,8 +113,4 @@ DROP PROCEDURE proc_insert;
101113
DROP TABLE t1;
102114

103115
--disconnect node_1b
104-
105-
# Due to MW-330, Multiple "conflict state 3 after post commit" warnings if table is dropped while SP is running
106-
CALL mtr.add_suppression("WSREP: .* conflict state after post commit ");
107-
108-
set global innodb_status_output=Default;
116+
--disconnect node_1c

0 commit comments

Comments
 (0)