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
|
############################################################
# WL#9426: Single Primary Mode in Group Replication
#
# This test case verifies that one can override the ISOLATION
# level restrictions in the SINGLE PRIMARY mode.
############################################################
--source include/big_test.inc
--source include/have_group_replication_plugin.inc
SET SQL_LOG_BIN=0;
call mtr.add_suppression("Transaction isolation level .tx_isolation. is set to SERIALIZABLE, which is not compatible with Group Replication");
SET SQL_LOG_BIN=1;
--let $server1_uuid= `SELECT @@server_uuid`
--let $rpl_skip_group_replication_start= 1
--let $rpl_server_count= 2
--let $rpl_group_replication_single_primary_mode=1
--source include/group_replication.inc
--echo #
--echo # 1) START GROUP IN SINGLE PRIMARY MODE AND CHECK IF FLAG SET TO FALSE IN
--echo # `group_replication_enforce_update_everywhere_checks` FORCES THE PLUGIN
--echo # TO IGNORE THE FAULTY CONFIGURATION OF `tx_isolate`
--echo #
--let $test_parameter_enforce_checks= FALSE
--let $test_parameter_single_primary_mode= TRUE
--let $test_parameter_tx_isolation= 'SERIALIZABLE'
--let $test_parameter_sql_execution_error= 0
--let $test_parameter_primary_uuid= $server1_uuid
--source ../include/gr_single_primary_with_transaction_isolation.inc
--echo #
--echo # 2) START GROUP IN MULTI PRIMARY MODE AND CHECK IF FLAG SET TO FALSE IN
--echo # `group_replication_enforce_update_everywhere_checks` FORCES THE PLUGIN
--echo # TO IGNORE THE FAULTY CONFIGURATION OF `tx_isolate`
--echo #
--let $test_parameter_enforce_checks= FALSE
--let $test_parameter_single_primary_mode= FALSE
--let $test_parameter_tx_isolation= 'SERIALIZABLE'
--let $test_parameter_sql_execution_error= 0
--let $test_parameter_primary_uuid=
--source ../include/gr_single_primary_with_transaction_isolation.inc
--echo #
--echo # 3) START GROUP IN MULTI PRIMARY MODE AND CHECK IF FLAG SET TO TRUE IN
--echo # `group_replication_enforce_update_everywhere_checks` FORCES THE PLUGIN
--echo # TO THROW AN ERROR WHEN THERE IS FAULTY CONFIGURATION OF `tx_isolate`
--echo #
--let $test_parameter_enforce_checks= TRUE
--let $test_parameter_single_primary_mode= FALSE
--let $test_parameter_tx_isolation= 'SERIALIZABLE'
--let $test_parameter_sql_execution_error= 3098
--let $test_parameter_primary_uuid=
--source ../include/gr_single_primary_with_transaction_isolation.inc
--echo #
--echo # 4) START GROUP IN MULTI PRIMARY MODE AND
--echo # WITH CORRECT CONFIGURATION OF `tx_isolate` then the flag
--echo # `group_replication_enforce_update_everywhere_checks` doesn't matter
--echo #
--let $test_parameter_enforce_checks= TRUE
--let $test_parameter_single_primary_mode= FALSE
--let $test_parameter_tx_isolation= 'REPEATABLE-READ'
--let $test_parameter_sql_execution_error= 0
--let $test_parameter_primary_uuid=
--source ../include/gr_single_primary_with_transaction_isolation.inc
--echo #
--echo # 5) START GROUP IN MULTI PRIMARY MODE AND
--echo # WITH CORRECT CONFIGURATION OF `tx_isolate` then the flag
--echo # `group_replication_enforce_update_everywhere_checks` doesn't matter
--echo #
--let $test_parameter_enforce_checks= FALSE
--let $test_parameter_single_primary_mode= FALSE
--let $test_parameter_tx_isolation= 'REPEATABLE-READ'
--let $test_parameter_sql_execution_error= 0
--let $test_parameter_primary_uuid=
--source ../include/gr_single_primary_with_transaction_isolation.inc
--echo # CLEANUP
--connection server1
--source include/group_replication_end.inc
|