File: gr_single_primary_with_transaction_isolation.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 (83 lines) | stat: -rw-r--r-- 3,487 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
############################################################
# 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