File: ndb_binlog_restart.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 (56 lines) | stat: -rw-r--r-- 2,704 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
reset master;
Disconnect mysqld from all datanodes
Wait for binlog rotate to indicate disconnect
Wait to get out of read-only mode

Check that the binlog was rotated:
There should be a 'LOST EVENT', then 'Rotate ... binlog.000002'
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
binlog.000001	#	Incident	#	#	#1 (LOST_EVENTS)
binlog.000001	#	Rotate	#	#	binlog.000002;pos=POS

Testing for Bug#22204186: Stuck in Readonly if slow failure handling
====================================================================
reset master;
Disconnect mysqld from all datanodes
Wait for binlog rotate to indicate disconnect
Wait to get out of read-only mode

Check that the binlog was rotated:
There should be a 'LOST EVENT', then 'Rotate ... binlog.000002'
include/show_binlog_events.inc
Log_name	Pos	Event_type	Server_id	End_log_pos	Info
binlog.000001	#	Incident	#	#	#1 (LOST_EVENTS)
binlog.000001	#	Rotate	#	#	binlog.000002;pos=POS

Testcase1 for Bug#22494024 Slow binlog-setup -> MDL deadlock (Meta Data Lock)
ndb_binlog_setup() fails to fully complete and does not clean up
its partial setup binlog subscriptions on exit
=============================================================================
Prepare mysqld 'server2' to not entirely complete binlog_setup
Disconnect both mysqld servers from all datanodes -> binlog restarts
Wait for 'server1' binlog rotate to indicate disconnect
Wait for 'server2' binlog rotate to indicate disconnect
Wait for 'server1' to complete setup and get out of read-only mode
Give 'server2' some time to start, and fail, a binlog_setup
Create table operation on 'server1' grab MDL lock while waiting for
schema change distribution to all subscribing mysqld.
create table t1 (a int primary key) engine=ndb;
drop table t1;
Wait for 'server2' to complete setup and get out of read-only mode

Testcase2 for Bug#22494024 Slow binlog-setup -> MDL deadlock (Meta Data Lock)
Table 'ndb_schema' is accessed from a SQL query. Causing it to be opened
and a SUBSCRIBE-event sent to other mysqld.
=============================================================================
Prepare mysqld 'server2' to do slow binlog_setup upon restart
Disconnect both mysqld servers from all datanodes -> binlog restarts
Wait for 'server1' binlog rotate to indicate disconnect
Wait for 'server2' binlog rotate to indicate disconnect
Wait for (fast) 'server1' to complete setup and get out of read-only mode
Create table operation on 'server1' grab MDL lock while waiting for
schema distribution to all subscribing mysqld -> stuck on 'server2'
create table t1 (a int primary key) engine=ndb;
drop table t1;
Wait for 'server2' to complete setup and get out of read-only mode