| 1 |
include/group_replication.inc |
| 2 |
Warnings: |
| 3 |
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 4 |
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information. |
| 5 |
[connection server1] |
| 6 |
|
| 7 |
# 1. Check that the value GENERATE can not be used for REQUIRE_TABLE_PRIMARY_KEY_CHECK |
| 8 |
# with Group Replication channels |
| 9 |
CHANGE REPLICATION SOURCE TO REQUIRE_TABLE_PRIMARY_KEY_CHECK = GENERATE FOR CHANNEL "group_replication_recovery"; |
| 10 |
ERROR HY000: On a Group Replication channel, setting REQUIRE_TABLE_PRIMARY_KEY_CHECK to 'GENERATE' is not allowed. |
| 11 |
CHANGE REPLICATION SOURCE TO REQUIRE_TABLE_PRIMARY_KEY_CHECK = GENERATE FOR CHANNEL "group_replication_applier"; |
| 12 |
ERROR HY000: On a Group Replication channel, setting REQUIRE_TABLE_PRIMARY_KEY_CHECK to 'GENERATE' is not allowed. |
| 13 |
|
| 14 |
# 2. Set `REQUIRE_TABLE_PRIMARY_KEY_CHECK` option for the applier channel |
| 15 |
# Start a member and check the `REQUIRE_TABLE_PRIMARY_KEY_CHECK` option is set |
| 16 |
CHANGE REPLICATION SOURCE TO REQUIRE_TABLE_PRIMARY_KEY_CHECK = OFF FOR CHANNEL "group_replication_applier"; |
| 17 |
include/start_and_bootstrap_group_replication.inc |
| 18 |
include/assert.inc [require_table_primary_key_check in performance_schema.replication_applier_configuration is set to OFF for "group_replication_applier"] |
| 19 |
|
| 20 |
# 3. Block the applier to block server 2 recovery |
| 21 |
SET @@GLOBAL.DEBUG='+d,block_applier_updates'; |
| 22 |
|
| 23 |
# 4. Set `REQUIRE_TABLE_PRIMARY_KEY_CHECK` option for the recovery channel |
| 24 |
# Start the member and check the `REQUIRE_TABLE_PRIMARY_KEY_CHECK` option is set |
| 25 |
[connection server2] |
| 26 |
CHANGE REPLICATION SOURCE TO REQUIRE_TABLE_PRIMARY_KEY_CHECK = ON FOR CHANNEL "group_replication_recovery"; |
| 27 |
include/start_group_replication.inc |
| 28 |
include/assert.inc [require_table_primary_key_check in performance_schema.replication_applier_configuration is set to ON for "group_replication_recovery"] |
| 29 |
|
| 30 |
# 5. Cleanup |
| 31 |
[connection server1] |
| 32 |
SET DEBUG_SYNC = "now WAIT_FOR applier_read_blocked"; |
| 33 |
SET @@GLOBAL.DEBUG='-d,block_applier_updates'; |
| 34 |
SET DEBUG_SYNC = "now SIGNAL resume_applier_read"; |
| 35 |
[connection server2] |
| 36 |
include/gr_wait_for_member_state.inc |
| 37 |
[connection server1] |
| 38 |
SET DEBUG_SYNC= 'RESET'; |
| 39 |
include/group_replication_end.inc |