mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
fix many rpl test failures
* wait_until_connected_again.inc should expect ER_CONNECTION_KILLED now * also fix MySQL BUG#36228
This commit is contained in:
Submodule libmariadb updated: f95877dc5f...0fa6b16c52
@ -61,9 +61,8 @@ connection slave;
|
||||
# '2003' CR_CONN_HOST_ERROR
|
||||
# '2002' CR_CONNECTION_ERROR
|
||||
# '2006' CR_SERVER_GONE_ERROR
|
||||
# '1040' ER_CON_COUNT_ERROR
|
||||
# '1053' ER_SERVER_SHUTDOWN
|
||||
let $slave_io_errno= 1040, 1053, 2002, 2003, 2006, 2013;
|
||||
let $slave_io_errno= 1053, 2002, 2003, 2006, 2013;
|
||||
--let $slave_io_error_is_nonfatal= 1
|
||||
source include/wait_for_slave_io_error.inc;
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
# $slave_io_errno
|
||||
# The expected IO error numbers. This can be either a single
|
||||
# number, or a comma-separated list of numbers. Examples:
|
||||
# --let $slave_io_errno= 1040, 1053, 2002, 2003, 2006, 2013
|
||||
# --let $slave_io_errno= 1053, 2002, 2003, 2006, 2013
|
||||
# --let $slave_io_errno= 1045
|
||||
# (After BUG#41956 has been fixed, this will be required to be
|
||||
# symbolic names instead of numbers.)
|
||||
|
@ -11,10 +11,7 @@ let $counter= 5000;
|
||||
let $mysql_errno= 9999;
|
||||
while ($mysql_errno)
|
||||
{
|
||||
# Strangely enough, the server might return "Too many connections"
|
||||
# while being shutdown, thus 1040 is an "allowed" error
|
||||
# See BUG#36228
|
||||
--error 0,1040,1053,2002,2003,2005,2006,2013
|
||||
--error 0,ER_SERVER_SHUTDOWN,ER_CONNECTION_KILLED,2002,2006,2013
|
||||
show status;
|
||||
|
||||
dec $counter;
|
||||
|
@ -9,10 +9,7 @@ let $counter= 600;
|
||||
let $mysql_errno= 0;
|
||||
while (!$mysql_errno)
|
||||
{
|
||||
# Strangely enough, the server might return "Too many connections"
|
||||
# while being shutdown, thus 1040 is an "allowed" error.
|
||||
# See BUG#36228.
|
||||
--error 0,1040,1053,2002,2003,2005,2006,2013
|
||||
--error 0,ER_SERVER_SHUTDOWN,ER_CONNECTION_KILLED,2002,2006,2013
|
||||
show status;
|
||||
|
||||
dec $counter;
|
||||
|
@ -77,10 +77,10 @@ let $counter= 80;
|
||||
let $mysql_errno= 0;
|
||||
while (!$mysql_errno)
|
||||
{
|
||||
--error 0,1040,1053,2002,2003,2006,2013
|
||||
--error 0,ER_SERVER_SHUTDOWN,ER_CONNECTION_KILLED,2002,2006,2013
|
||||
show status;
|
||||
|
||||
--error 0,1040,1053,2002,2003,2006,2013
|
||||
--error 0,ER_SERVER_SHUTDOWN,ER_CONNECTION_KILLED,2002,2006,2013
|
||||
select * from information_schema.innodb_sys_semaphore_waits;
|
||||
|
||||
dec $counter;
|
||||
|
@ -12,7 +12,7 @@ include/rpl_stop_server.inc [server_number=1]
|
||||
slave is unblocked
|
||||
SET DEBUG_SYNC='now SIGNAL signal.get_unix_timestamp';
|
||||
Check network error happened here
|
||||
include/wait_for_slave_io_error.inc [errno=1040, 1053, 2002, 2003, 2006, 2013]
|
||||
include/wait_for_slave_io_error.inc [errno=1053, 2002, 2003, 2006, 2013]
|
||||
set @@global.debug = "-d,'debug_lock.before_get_UNIX_TIMESTAMP'";
|
||||
include/rpl_start_server.inc [server_number=1]
|
||||
include/wait_for_slave_param.inc [Slave_IO_Running]
|
||||
@ -24,7 +24,7 @@ include/rpl_stop_server.inc [server_number=1]
|
||||
slave is unblocked
|
||||
SET DEBUG_SYNC='now SIGNAL signal.get_server_id';
|
||||
Check network error happened here
|
||||
include/wait_for_slave_io_error.inc [errno=1040, 1053, 2002, 2003, 2006, 2013]
|
||||
include/wait_for_slave_io_error.inc [errno=1053, 2002, 2003, 2006, 2013]
|
||||
set @@global.debug = "-d,'debug_lock.before_get_SERVER_ID'";
|
||||
include/rpl_start_server.inc [server_number=1]
|
||||
include/wait_for_slave_param.inc [Slave_IO_Running]
|
||||
|
@ -82,7 +82,7 @@ let $counter= 80;
|
||||
let $mysql_errno= 0;
|
||||
while (!$mysql_errno)
|
||||
{
|
||||
--error 0,1040,1053,2002,2003,2006,2013
|
||||
--error 0,ER_SERVER_SHUTDOWN,ER_CONNECTION_KILLED,2002,2006,2013
|
||||
show status;
|
||||
|
||||
dec $counter;
|
||||
|
@ -52,7 +52,7 @@ echo =============Test of '::1' ========================;
|
||||
let $IPv6= ::1;
|
||||
--echo connect (con1, $IPv6, root, , test, MASTER_MYPORT,);
|
||||
--disable_query_log
|
||||
--error 2003,2006
|
||||
--error 2002,2006
|
||||
connect (con1, $IPv6, root, , test, $MASTER_MYPORT,);
|
||||
--enable_query_log
|
||||
|
||||
|
@ -6455,7 +6455,7 @@ static void create_new_thread(CONNECT *connect)
|
||||
mysql_mutex_unlock(&LOCK_connection_count);
|
||||
statistic_increment(denied_connections, &LOCK_status);
|
||||
statistic_increment(connection_errors_max_connection, &LOCK_status);
|
||||
connect->close_with_error(0, NullS, ER_CON_COUNT_ERROR);
|
||||
connect->close_with_error(0, NullS, abort_loop ? ER_SERVER_SHUTDOWN : ER_CON_COUNT_ERROR);
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user