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
|