File: gr_addmember_error_message.test

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 (85 lines) | stat: -rw-r--r-- 4,542 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
################################################################################
# Verify that when a new member is added to the group the important messages are
# logged with SYSTEM level.
#
# 0. Start 2 servers
# 1. Bootstrap group replication on first server
# 2. Add second server to the group
# 3. Verify that messages are logged with SYSTEM level
# 4. Cleanup
################################################################################

--echo
--echo ############################################################
--echo # 0. Start 2 servers
--source include/have_group_replication_plugin.inc
--let $rpl_skip_group_replication_start= 1
--source include/group_replication.inc

--echo
--echo ############################################################
--echo # 1. Bootstrap group replication on first server
--let $rpl_connection_name= server1
--source include/rpl_connection.inc
--source include/start_and_bootstrap_group_replication.inc

--echo
--echo ############################################################
--echo # 2. Add second server to the group
--let $rpl_connection_name= server2
--source include/rpl_connection.inc
--source include/start_group_replication.inc

--echo
--echo ############################################################
--echo # 3. Verify that messages are logged with SYSTEM level

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.2.err
--let $assert_select = \[System\] \[MY-013587\] \[Repl\] Plugin group_replication reported: 'Plugin 'group_replication' is starting\.'
--let $assert_count = 1
--let $assert_text = Found message informing that group replication plugin has started.
--source include/assert_grep.inc

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.2.err
--let $assert_only_after=  Plugin 'group_replication' is starting
--let $assert_select = \[System\] \[MY-011565\] \[Repl\] Plugin group_replication reported: 'Setting super_read_only=ON\.'
--let $assert_count = 2
--let $assert_text = Found message informing that `super_read_only` is ON.
--source include/assert_grep.inc

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.2.err
--let $assert_only_after=  Plugin group_replication reported: 'Setting super_read_only=ON\.'
--let $assert_select = \[System\] \[MY-013471\] \[Repl\] Plugin group_replication reported: 'Distributed recovery will transfer data using: Incremental recovery from a group donor'
--let $assert_count = 1
--let $assert_text = Found message informing the strategy for distributed recovery.
--source include/assert_grep.inc

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.2.err
--let $assert_only_after=  Plugin group_replication reported: 'Distributed recovery will transfer data using.*
--let $assert_select = \[System\] \[MY-011503\] \[Repl\] Plugin group_replication reported: 'Group membership changed to .* on view .*'
--let $assert_count = 1
--let $assert_text = Found message informing that group membership has changed.
--source include/assert_grep.inc

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.2.err
--let $assert_only_after=  Plugin group_replication reported: 'Group membership changed to .* on view .*'
--let $assert_select = \[System\] \[MY-011490\] \[Repl\] Plugin group_replication reported: 'This server was declared online within the replication group\.'
--let $assert_count = 1
--let $assert_text = Found message informing that server was declared online withing the replication group.
--source include/assert_grep.inc

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.2.err
--let $assert_only_after=  Plugin group_replication reported: 'This server was declared online within the replication group\.'
--let $assert_select = \[System\] \[MY-011566\] \[Repl\] Plugin group_replication reported: 'Setting super_read_only=OFF\.'
--let $assert_count = 1
--let $assert_text = Found message informing that `super_read_only` is OFF.
--source include/assert_grep.inc

--let $assert_file = $MYSQLTEST_VARDIR/tmp/gr_add_member_error_message.1.err
--let $assert_only_after=  Plugin group_replication reported: 'Setting super_read_only=OFF\.'
--let $assert_select = \[System\] \[MY-011492\] \[Repl\] Plugin group_replication reported: 'The member with address .* was declared online within the replication group\.'
--let $assert_count = 1
--let $assert_text = Found message informing that member was declared online withing the group.
--source include/assert_grep.inc

--source include/group_replication_end.inc