File: galera_query_cache_invalidate.result

package info (click to toggle)
mariadb 1%3A11.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 772,520 kB
  • sloc: ansic: 2,414,714; cpp: 1,791,394; asm: 381,336; perl: 62,905; sh: 49,647; pascal: 40,897; java: 39,363; python: 20,791; yacc: 20,432; sql: 17,907; xml: 12,344; ruby: 8,544; cs: 6,542; makefile: 6,145; ada: 1,879; lex: 1,193; javascript: 996; objc: 80; tcl: 73; awk: 46; php: 22
file content (120 lines) | stat: -rw-r--r-- 2,615 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
connection node_2;
connection node_1;
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
connect node_4, 127.0.0.1, root, , test, $NODE_MYPORT_4;
connection node_2;
call mtr.add_suppression("WSREP: Ignoring server id .* for non bootstrap node");
connection node_4;
call mtr.add_suppression("WSREP: Ignoring server id .* for non bootstrap node");
connection node_3;
START SLAVE;
include/wait_for_slave_to_start.inc
connection node_1;
CREATE TABLE t1 (id bigint primary key, msg varchar(100)) engine=innodb;
SET AUTOCOMMIT=1;
INSERT INTO t1 VALUES (4000000, 'foobar');
SELECT COUNT(*) FROM t1;
COUNT(*)
50001
connection node_3;
connection node_1;
# node_1
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
connection node_2;
# node_2
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
connection node_3;
# node_3
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
connection node_4;
# node_4
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
connection node_1;
# node_1 insert new
INSERT INTO t1 values (5000000, 'foobar');
connection node_3;
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
connection node_2;
# node_2
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
connection node_3;
# node_3
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
connection node_4;
# node_4
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
SELECT * FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
connection node_2;
# node_3 different query same table
SELECT id, msg FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
connection node_4;
# node_6 different query same table
SELECT id, msg FROM t1 WHERE msg='foobar';
id	msg
4000000	foobar
5000000	foobar
connection node_1;
drop table t1;
connection node_3;
connection node_3;
STOP SLAVE;
RESET SLAVE ALL;
Warnings:
Note	4190	RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos'
connection node_1;
SET SESSION WSREP_ON=OFF;
RESET MASTER;
SET SESSION WSREP_ON=ON;
disconnect node_2;
disconnect node_1;
# End of test