mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.4' into 10.5
This commit is contained in:
@ -59,7 +59,7 @@ let $_wfsie_errno= query_get_value(SHOW SLAVE STATUS, Last_IO_Errno, 1);
|
||||
|
||||
if ($slave_io_errno == '') {
|
||||
--echo !!!ERROR IN TEST: you must set \$slave_io_errno before you source
|
||||
--echo !!!wait_for_slave_sql_error.inc. The error we got this time was '$_wfsie_errno',
|
||||
--echo !!!wait_for_slave_io_error.inc. The error we got this time was '$_wfsie_errno',
|
||||
--echo !!!so you probably want to add the following line to your test case:
|
||||
--echo !!! --let \$slave_io_errno= $_wfsie_errno
|
||||
--die !!!ERROR IN TEST: you must set \$slave_io_errno before sourcing wait_for_slave_io_error.inc
|
||||
|
@ -21,6 +21,17 @@
|
||||
# $slave_timeout
|
||||
# See include/wait_for_slave_param.inc.
|
||||
#
|
||||
# $rpl_allow_error
|
||||
# By default, this file fails if there is an error in the IO
|
||||
# thread. However, if an error in the IO thread is possible and allowed,
|
||||
# setting $rpl_allow_error=1 will prevent this file from failing if
|
||||
# there is an error in the IO thread.
|
||||
# (If an error is _always_ expected, a better alternative might be to
|
||||
# use wait_for_slave_io_error.inc instead of this file).
|
||||
# Note: This is currently always enabled, since a simple STOP SLAVE
|
||||
# IO_THREAD can cause an error if it interrupts the slave's initial
|
||||
# communication with the master (MDEV-32892).
|
||||
#
|
||||
# $rpl_debug
|
||||
# See include/rpl_init.inc
|
||||
|
||||
@ -31,9 +42,15 @@
|
||||
|
||||
--let $slave_param= Slave_IO_Running
|
||||
--let $slave_param_value= No
|
||||
--let $slave_error_param= Last_IO_Errno
|
||||
--let $_io_stop_save_allow_error= $slave_error_param
|
||||
# Disabled, as IO errors are left behind when a normal STOP SLAVE interrupts
|
||||
# the initial communication between the IO thread and the master (MDEV-32892).
|
||||
#if (!$rpl_allow_error)
|
||||
#{
|
||||
# --let $slave_error_param= Last_IO_Errno
|
||||
#}
|
||||
--source include/wait_for_slave_param.inc
|
||||
--let $slave_error_param=
|
||||
--let $slave_error_param= $_io_stop_save_allow_error
|
||||
|
||||
|
||||
--let $include_filename= wait_for_slave_io_to_stop.inc
|
||||
|
@ -35,7 +35,7 @@
|
||||
# $slave_error_param
|
||||
# If set, this script will check if the column of the output from
|
||||
# SHOW SLAVE STATUS named $slave_error_param is nonzero. If it is,
|
||||
# this script will faile immediately. Typically, this should be set
|
||||
# this script will fail immediately. Typically, this should be set
|
||||
# to Last_IO_Errno or Last_SQL_Errno.
|
||||
#
|
||||
# $rpl_debug
|
||||
@ -56,11 +56,6 @@ if (!$_slave_timeout)
|
||||
}
|
||||
}
|
||||
|
||||
if ($slave_error_param == '')
|
||||
{
|
||||
--let $slave_error_param= 1
|
||||
}
|
||||
|
||||
let $_slave_param_comparison= $slave_param_comparison;
|
||||
if (!$_slave_param_comparison)
|
||||
{
|
||||
@ -90,7 +85,7 @@ while ($_slave_continue)
|
||||
--let $_show_slave_status_value= query_get_value("SHOW SLAVE STATUS", $slave_param, 1)
|
||||
|
||||
# Check if an error condition is reached.
|
||||
if (!$slave_error_param)
|
||||
if ($slave_error_param)
|
||||
{
|
||||
--let $_show_slave_status_error_value= query_get_value("SHOW SLAVE STATUS", $slave_error_param, 1)
|
||||
if ($_show_slave_status_error_value)
|
||||
|
@ -21,6 +21,14 @@
|
||||
# $slave_timeout
|
||||
# See include/wait_for_slave_param.inc
|
||||
#
|
||||
# $rpl_allow_error
|
||||
# By default, this file fails if there is an error in the SQL
|
||||
# thread. However, if an error in the SQL thread is possible and allowed,
|
||||
# setting $rpl_allow_error=1 will prevent this file from failing if
|
||||
# there is an error in the SQL thread.
|
||||
# (If an error is _always_ expected, a better alternative might be to
|
||||
# use wait_for_slave_sql_error.inc instead of this file).
|
||||
#
|
||||
# $rpl_debug
|
||||
# See include/rpl_init.inc
|
||||
|
||||
@ -31,7 +39,10 @@
|
||||
|
||||
--let $slave_param= Slave_SQL_Running
|
||||
--let $slave_param_value= No
|
||||
--let $slave_error_param= Last_SQL_Errno
|
||||
if (!$rpl_allow_error)
|
||||
{
|
||||
--let $slave_error_param= Last_SQL_Errno
|
||||
}
|
||||
--source include/wait_for_slave_param.inc
|
||||
--let $slave_error_param=
|
||||
|
||||
|
Reference in New Issue
Block a user