Debian Codegraph @

mysql-test/suite/galera_sr/r/galera_sr_transaction_replay.result

raw
1 connection node_2;
2 connection node_1;
3 connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1;
4 SET SESSION wsrep_sync_wait = 0;
5 connection node_1;
6 CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
7 INSERT INTO t1 VALUES (1, 'a');
8 INSERT INTO t1 VALUES (2, 'a');
9 connection node_1;
10 SET AUTOCOMMIT=ON;
11 SET SESSION wsrep_trx_fragment_size = 1;
12 START TRANSACTION;
13 UPDATE t1 SET f2 = 'b' WHERE f1 = 1;
14 SELECT * FROM t1 WHERE f1 = 2 FOR UPDATE;
15 f1 f2
16 2 a
17 connection node_1a;
18 SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync';
19 connection node_2;
20 UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
21 connection node_1a;
22 SET SESSION wsrep_on = 0;
23 SET SESSION wsrep_on = 1;
24 SET GLOBAL wsrep_provider_options = 'dbug=';
25 SET GLOBAL wsrep_provider_options = 'dbug=d,local_monitor_master_enter_sync';
26 connection node_1;
27 COMMIT;
28 connection node_1a;
29 SET SESSION wsrep_sync_wait = 0;
30 SET SESSION wsrep_on = 0;
31 SET SESSION wsrep_on = 1;
32 SET GLOBAL wsrep_provider_options = 'dbug=';
33 SET GLOBAL wsrep_provider_options = 'dbug=d,abort_trx_end';
34 SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
35 SET SESSION wsrep_on = 0;
36 SET SESSION wsrep_on = 1;
37 SET GLOBAL wsrep_provider_options = 'dbug=';
38 SET GLOBAL wsrep_provider_options = 'signal=abort_trx_end';
39 SET GLOBAL wsrep_provider_options = 'signal=local_monitor_master_enter_sync';
40 connection node_1;
41 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
42 COUNT(*) = 1
43 1
44 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
45 COUNT(*) = 1
46 1
47 SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
48 COUNT(*) = 0
49 1
50 wsrep_local_replays
51 1
52 connection node_2;
53 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
54 COUNT(*) = 1
55 1
56 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
57 COUNT(*) = 1
58 1
59 SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
60 COUNT(*) = 0
61 1
62 DELETE FROM t1;
63 INSERT INTO t1 VALUES (1, 'a');
64 INSERT INTO t1 VALUES (2, 'a');
65 connection node_1;
66 SET AUTOCOMMIT=ON;
67 SET SESSION wsrep_trx_fragment_size = 1;
68 START TRANSACTION;
69 UPDATE t1 SET f2 = 'x' WHERE f1 = 1;
70 SET SESSION wsrep_trx_fragment_size = 0;
71 UPDATE t1 SET f2 = 'b' WHERE f1 = 1;
72 SELECT * FROM t1 WHERE f1 = 2 FOR UPDATE;
73 f1 f2
74 2 a
75 connection node_1a;
76 SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync';
77 connection node_2;
78 UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
79 connection node_1a;
80 SET SESSION wsrep_on = 0;
81 SET SESSION wsrep_on = 1;
82 SET GLOBAL wsrep_provider_options = 'dbug=';
83 SET GLOBAL wsrep_provider_options = 'dbug=d,local_monitor_master_enter_sync';
84 connection node_1;
85 COMMIT;
86 connection node_1a;
87 SET SESSION wsrep_sync_wait = 0;
88 SET SESSION wsrep_on = 0;
89 SET SESSION wsrep_on = 1;
90 SET GLOBAL wsrep_provider_options = 'dbug=';
91 SET GLOBAL wsrep_provider_options = 'dbug=d,abort_trx_end';
92 SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
93 SET SESSION wsrep_on = 0;
94 SET SESSION wsrep_on = 1;
95 SET GLOBAL wsrep_provider_options = 'dbug=';
96 SET GLOBAL wsrep_provider_options = 'signal=abort_trx_end';
97 SET GLOBAL wsrep_provider_options = 'signal=local_monitor_master_enter_sync';
98 connection node_1;
99 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
100 COUNT(*) = 1
101 1
102 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
103 COUNT(*) = 1
104 1
105 SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
106 COUNT(*) = 0
107 1
108 wsrep_local_replays
109 1
110 connection node_2;
111 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
112 COUNT(*) = 1
113 1
114 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
115 COUNT(*) = 1
116 1
117 SELECT COUNT(*) = 0 FROM mysql.wsrep_streaming_log;
118 COUNT(*) = 0
119 1
120 DELETE FROM t1;
121 DROP TABLE t1;