Skip to content

Commit ddf95e8

Browse files
author
Jan Lindström
committed
MDEV-26707: SR transaction rolls back locally, but not in cluster
Add wait_condition
1 parent ae098b4 commit ddf95e8

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

mysql-test/suite/galera_3nodes_sr/r/MDEV-26707.result

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,35 @@ connection node_3a;
7171
SET SESSION wsrep_sync_wait = 0;
7272
SET SESSION wsrep_sync_wait = DEFAULT;
7373
connection node_1a;
74+
Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
75+
Id User Host db Command Time State Info Progress
76+
1 system user NULL Sleep 66 wsrep aborter idle NULL 0.000
77+
2 system user NULL Sleep 66 closing tables NULL 0.000
78+
10 root localhost test Sleep 58 NULL 0.000
79+
11 root localhost:52722 test Sleep 56 NULL 0.000
80+
12 root localhost:52724 test Query 0 starting show full processlist 0.000
7481
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
7582
EXPECT_0
76-
0
83+
1
7784
connection node_2a;
85+
Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
86+
Id User Host db Command Time State Info Progress
87+
1 system user NULL Sleep 96 wsrep aborter idle NULL 0.000
88+
2 system user NULL Sleep 87 closing tables NULL 0.000
89+
10 root localhost:37222 test Sleep 64 NULL 0.000
90+
11 root localhost:37228 test Query 0 starting show full processlist 0.000
7891
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
7992
EXPECT_0
80-
0
93+
1
8194
connection node_3a;
95+
Timeout in wait_condition.inc for SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
96+
Id User Host db Command Time State Info Progress
97+
1 system user NULL Sleep 122 wsrep aborter idle NULL 0.000
98+
2 system user NULL Sleep 117 closing tables NULL 0.000
99+
10 root localhost:60992 test Sleep 117 NULL 0.000
100+
11 root localhost:60994 test Query 0 starting show full processlist 0.000
82101
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
83102
EXPECT_0
84-
0
103+
1
85104
connection node_1;
86105
DROP TABLE t1;

mysql-test/suite/galera_3nodes_sr/t/MDEV-26707.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,16 @@ SET SESSION wsrep_sync_wait = DEFAULT;
151151
# Expect no entries in wsrep_streaming_log
152152
#
153153
--connection node_1a
154+
--let $wait_condition = SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
155+
--source include/wait_condition.inc
154156
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
155157
--connection node_2a
158+
--let $wait_condition = SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
159+
--source include/wait_condition.inc
156160
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
157161
--connection node_3a
162+
--let $wait_condition = SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log
163+
--source include/wait_condition.inc
158164
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
159165

160166

0 commit comments

Comments
 (0)