@@ -18,17 +18,13 @@ include/start_group_replication.inc
18
18
############################################################
19
19
# 2. Start a DDL statement on server1, but do not let it complete yet.
20
20
[connection server_1_1]
21
- SET DEBUG_SYNC= 'execute_command_before_main_switch SIGNAL ddl_running WAIT_FOR ddl_resume';
22
21
# The statement to test with that should hold up switching the primary:
23
- CREATE FUNCTION metaphon RETURNS STRING SONAME 'udf_example.so';
24
22
[connection server1]
25
- SET DEBUG_SYNC= 'now WAIT_FOR ddl_running';
26
23
27
24
############################################################
28
25
# 3. Set server2 as primary. The primary change must wait
29
26
# until the DDL statement has completed.
30
27
[connection server_1]
31
- SELECT group_replication_set_as_primary("SERVER2_UUID");
32
28
33
29
############################################################
34
30
# 4. Assert that server1 continues to be the primary, as the
@@ -41,9 +37,7 @@ include/assert.inc ['server1 continue to be primary']
41
37
############################################################
42
38
# 5. Let the DDL statement finish.
43
39
[connection server1]
44
- SET DEBUG_SYNC= 'now SIGNAL ddl_resume';
45
40
[connection server_1_1]
46
- SET DEBUG_SYNC= 'RESET';
47
41
48
42
############################################################
49
43
# 6. server2 should now be primary.
@@ -60,14 +54,13 @@ include/gr_assert_primary_member.inc
60
54
[connection server2]
61
55
include/show_relaylog_events.inc [FOR CHANNEL 'group_replication_applier']
62
56
Log_name Pos Event_type Server_id End_log_pos Info
63
- server-relay-log-group_replication_applier.000002 # Format_desc # # SERVER_VERSION, BINLOG_VERSION
64
- server-relay-log-group_replication_applier.000002 # Query # # use `test`; CREATE FUNCTION metaphon RETURNS STRING SONAME 'udf_example.so'
57
+ server-relay-log-group_replication_applier.000002 # Format_desc # # #
58
+ server-relay-log-group_replication_applier.000002 # Query # # #
65
59
66
60
############################################################
67
61
# 8. Clean up.
68
62
[connection server2]
69
63
# The clean-up statement for our earlier test statement:
70
- DROP FUNCTION metaphon;
71
64
include/rpl_sync.inc
72
65
[connection server1]
73
66
include/stop_group_replication.inc
0 commit comments