File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed
mysql-test/suite/galera_sr Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,25 @@ SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
17
17
SELECT COUNT(*) AS EXPECT_0 FROM t1;
18
18
EXPECT_0
19
19
0
20
- SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
21
- EXPECT_0
22
- 0
23
20
INSERT INTO t1 SELECT 1 FROM ten AS t1, ten AS t2, ten AS t3;
24
21
SELECT COUNT(*) AS EXPECT_1000 FROM t1;
25
22
EXPECT_1000
26
23
1000
27
- connection node_1a ;
24
+ connection node_1 ;
28
25
SET GLOBAL wsrep_sync_wait=15;
29
26
SELECT COUNT(*) AS EXPECT_1000 FROM t1;
30
27
EXPECT_1000
31
28
1000
29
+ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
30
+ EXPECT_0
31
+ 0
32
+ connection node_2;
33
+ SELECT COUNT(*) AS EXPECT_1000 FROM t1;
34
+ EXPECT_1000
35
+ 1000
36
+ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
37
+ EXPECT_0
38
+ 0
39
+ connection node_1;
32
40
DROP TABLE t1;
33
41
DROP TABLE ten;
Original file line number Diff line number Diff line change @@ -33,18 +33,27 @@ SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
33
33
34
34
# Confirm that the kill caused the updates made so far to be removed
35
35
--connection node_2
36
+ --let $wait_condition = SELECT COUNT(*) = 0 FROM t1
37
+ --source include/wait_condition.inc
36
38
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
37
39
SELECT COUNT(*) AS EXPECT_0 FROM t1;
38
- SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
39
40
40
41
# Confirm that the transaction can be reissued in its entirety on the slave without a conflict
41
42
42
43
INSERT INTO t1 SELECT 1 FROM ten AS t1, ten AS t2, ten AS t3;
43
44
SELECT COUNT(*) AS EXPECT_1000 FROM t1;
44
45
45
- --connection node_1a
46
+ --connection node_1
46
47
SET GLOBAL wsrep_sync_wait=15;
48
+ --let $wait_condition = SELECT COUNT(*) = 1000 FROM t1;
49
+ --source include/wait_condition.inc
50
+ SELECT COUNT(*) AS EXPECT_1000 FROM t1;
51
+ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
52
+
53
+ --connection node_2
47
54
SELECT COUNT(*) AS EXPECT_1000 FROM t1;
55
+ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
48
56
57
+ --connection node_1
49
58
DROP TABLE t1;
50
59
DROP TABLE ten;
You can’t perform that action at this time.
0 commit comments