Debian Codegraph @

mysql-test/suite/rpl/include/check_slave_skip_errors.inc

raw
1 # ==== Purpose ====
2 #
3 # MDEV-38624: Verify that ER_CONNECTION_KILLED (1927) cannot be added to
4 # --slave-skip-errors, even when explicitly specified or when using "all".
5 #
6 # Called from tests that configure --slave-skip-errors with 1927 or "all".
7 # Checks that 1927 is absent from slave_skip_errors and that the expected
8 # warning appears in the slave error log.
9
10 --connection slave
11 call mtr.add_suppression("Slave: ER_CONNECTION_KILLED .* is not allowed in --slave-skip-errors");
12
13 --let $skip_errors= query_get_value(SHOW VARIABLES LIKE 'slave_skip_errors', Value, 1)
14 if (`SELECT '$skip_errors' LIKE '%1927%'`)
15 {
16 --die MDEV-38624: Error 1927 must not be added to slave_skip_errors
17 }
18
19 --let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.2.err
20 --let $assert_select= ER_CONNECTION_KILLED .* is not allowed in --slave-skip-errors
21 --let $assert_count= 1
22 --let $assert_text= Warning about ER_CONNECTION_KILLED should appear in error log
23 --source include/assert_grep.inc