File: ndb_binlog_last_commit_epoch.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (63 lines) | stat: -rw-r--r-- 2,227 bytes parent folder | download
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
Reset binlog and show no state held
reset master;
select count(1) from mysql.ndb_binlog_index;
count(1)
0
Create table for experiments
use test;
create table test.t1 (a int primary key, b varchar(1000), c text) engine=ndb;
Basic test that an insert affects Server + Session epochs
insert into test.t1 values (1, repeat("B", 1000), repeat("E", 500));
init_server_epoch_includes_session_epoch	curr_server_epoch_includes_session_epoch	server_epoch_does_not_regress	session_epoch_does_not_regress
1	1	1	1
binlog_contains_last_session_epoch
1
Basic test that a read with exclusive lock has no effect
begin;
select count(1) from test.t1 where a=1 for update;
count(1)
1
commit;
init_server_epoch_includes_session_epoch	curr_server_epoch_includes_session_epoch	server_epoch_does_not_regress	session_epoch_does_not_regress
1	1	1	1
binlog_contains_last_session_epoch
0
Basic test that a read with shared lock has no effect
begin;
select count(1) from test.t1 where a=1 lock in share mode;
count(1)
1
commit;
init_server_epoch_includes_session_epoch	curr_server_epoch_includes_session_epoch	server_epoch_does_not_regress	session_epoch_does_not_regress
1	1	1	1
binlog_contains_last_session_epoch
0
Basic test that a committedread has no effect
begin;
select count(1) from test.t1 where a=1;
count(1)
1
commit;
init_server_epoch_includes_session_epoch	curr_server_epoch_includes_session_epoch	server_epoch_does_not_regress	session_epoch_does_not_regress
1	1	1	1
binlog_contains_last_session_epoch
0
Basic test that an update affects Server + Session epochs
update test.t1 set b=repeat("E", 1000), c=repeat("A", 5000) where a=1;
init_server_epoch_includes_session_epoch	curr_server_epoch_includes_session_epoch	server_epoch_does_not_regress	session_epoch_does_not_regress
1	1	1	1
binlog_contains_last_session_epoch
1
Basic test that a delete affects Server + Session epochs
delete from test.t1 where a=1;
init_server_epoch_includes_session_epoch	curr_server_epoch_includes_session_epoch	server_epoch_does_not_regress	session_epoch_does_not_regress
1	1	1	1
binlog_contains_last_session_epoch
1
Show that server epoch is preserved across connections
but session epoch is not
server_epoch_preserved
1
session_epoch_reset
1
drop table test.t1;