Debian Codegraph @

mysql-test/suite/binlog_gtid/t/binlog_warning_same_server_id.test

raw
1 --source include/have_binlog_format_row.inc
2
3 #
4 # marking this as a big test, since it does restart the server
5 # and that takes time
6 #
7
8 --source include/big_test.inc
9 --source include/not_valgrind.inc
10 --source include/not_ubsan.inc
11
12 ################################################################################
13 #
14 # BUG#92754: Relax restrictions on replicate_same_server_id wi...
15 # BUG#80291: relax restrictions on replicate_same_server_id with gtid_mode
16 #
17 ################################################################################
18
19 --let $error_log=$MYSQLTEST_VARDIR/log/replicate_same_server_id.err
20 --let $server_id=`SELECT @@global.server_id`
21
22 # Stop the server
23 --source include/shutdown_mysqld.inc
24
25 #
26 # Start with gtid-mode turned on, it will start
27 #
28 --let $restart_parameters="restart: --log-error=$error_log --log-replica-updates --replicate-same-server-id --gtid-mode=ON --enforce-gtid-consistency"
29 --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
30 --source include/start_mysqld.inc
31
32 #
33 # Assert that the server starts and that it emits the warning
34 #
35
36 --let $assert_text= Assert that the server starts and emits a warning
37 --let $assert_file= $error_log
38 --let $assert_select= .*using --replicate-same-server-id in conjunction with --log-replica-updates would lead to infinite loops in this server. However this will be ignored as the --log-bin option is not defined or your server is running with global transaction identiers enabled.
39 --let $assert_count= 1
40 --source include/assert_grep.inc
41
42 #
43 # Assert that we get an error when switching out of GTID_MODE=ON
44 #
45 --error ER_CANT_SET_GTID_MODE
46 SET @@global.gtid_mode=ON_PERMISSIVE;
47
48 #
49 # clean up
50 #
51
52 --source include/shutdown_mysqld.inc
53 --remove_file $error_log
54
55 --let $restart_parameters="restart"
56 --source include/start_mysqld.inc