Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8cf9db67
Commit
8cf9db67
authored
May 28, 2010
by
Browse files
Options
Browse Files
Download
Plain Diff
Manual merge
parents
fae1efb5
5873b972
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
37 deletions
+29
-37
mysql-test/extra/rpl_tests/rpl_get_master_version_and_clock.test
...est/extra/rpl_tests/rpl_get_master_version_and_clock.test
+8
-12
mysql-test/include/wait_for_slave_io_error.inc
mysql-test/include/wait_for_slave_io_error.inc
+21
-23
mysql-test/suite/rpl/r/rpl_get_master_version_and_clock.result
...-test/suite/rpl/r/rpl_get_master_version_and_clock.result
+0
-2
No files found.
mysql-test/extra/rpl_tests/rpl_get_master_version_and_clock.test
View file @
8cf9db67
...
@@ -68,19 +68,15 @@ eval SET DEBUG_SYNC=$debug_sync_action;
...
@@ -68,19 +68,15 @@ eval SET DEBUG_SYNC=$debug_sync_action;
# Show slave last IO errno
# Show slave last IO errno
connection
slave
;
connection
slave
;
source
include
/
wait_for_slave_io_to_stop
.
inc
;
let
$last_io_errno
=
query_get_value
(
"show slave status"
,
Last_IO_Errno
,
1
);
--
echo
Check
network
error
happened
here
--
echo
Check
network
error
happened
here
if
(
`SELECT '$last_io_errno' = '2013' || # CR_SERVER_LOST
# '2013' CR_SERVER_LOST
'$last_io_errno' = '2003' || # CR_CONN_HOST_ERROR
# '2003' CR_CONN_HOST_ERROR
'$last_io_errno' = '2002' || # CR_CONNECTION_ERROR
# '2002' CR_CONNECTION_ERROR
'$last_io_errno' = '2006' || # CR_SERVER_GONE_ERROR
# '2006' CR_SERVER_GONE_ERROR
'$last_io_errno' = '1040' || # ER_CON_COUNT_ERROR
# '1040' ER_CON_COUNT_ERROR
'$last_io_errno' = '1053' # ER_SERVER_SHUTDOWN
# '1053' ER_SERVER_SHUTDOWN
`
)
let
$slave_io_errno
=
1040
,
1053
,
2002
,
2003
,
2006
,
2013
;
{
source
include
/
wait_for_slave_io_error
.
inc
;
--
echo
NETWORK
ERROR
}
# deactivate the sync point of get_master_version_and_clock()
# deactivate the sync point of get_master_version_and_clock()
# now to avoid restarting IO-thread to re-enter it.
# now to avoid restarting IO-thread to re-enter it.
...
...
mysql-test/include/wait_for_slave_io_error.inc
View file @
8cf9db67
...
@@ -6,14 +6,21 @@
...
@@ -6,14 +6,21 @@
#
#
# ==== Usage ====
# ==== Usage ====
#
#
# # Wait several errors.
# let $slave_io_errno= 1, 2, 3;
# source include/wait_for_slave_io_error.inc;
#
# # Print error message
# let $slave_io_errno= 1;
# let $show_slave_io_error= 1;
# source include/wait_for_slave_io_error.inc;
# source include/wait_for_slave_io_error.inc;
#
#
# Parameters:
# Parameters:
#
#
# $slave_io_errno
# $slave_io_errno
# The expected IO error number. This is required.
# The expected IO error number
s
. This is required.
# (After BUG#41956 has been fixed, this will be required to be a
# (After BUG#41956 has been fixed, this will be required to be a
# symbolic name instead of a number.)
# symbolic name instead of a number
s
.)
#
#
# $show_slave_io_error
# $show_slave_io_error
# If set, will print the error to the query log.
# If set, will print the error to the query log.
...
@@ -25,15 +32,9 @@
...
@@ -25,15 +32,9 @@
# See wait_for_slave_param.inc for description.
# See wait_for_slave_param.inc for description.
if
(
`SELECT '$slave_io_errno' = ''`
)
{
if
(
`SELECT '$slave_io_errno' = ''`
)
{
# --die !!!ERROR IN TEST: you must set \$slave_io_errno before sourcing
--
die
!!!
ERROR
IN
TEST
:
you
must
set
\
$slave_io_errno
before
sourcing
wait_for_slave_io_error
.
inc
# wait_for_slave_io_error.inc
}
}
#let $slave_param= Slave_IO_Running;
#let $slave_param_value= No;
#let $slave_error_message= Failed while waiting for slave to stop the IO thread (expecting error in the IO thread);
#source include/wait_for_slave_param.inc;
let
$old_slave_param_comparison
=
$slave_param_comparison
;
let
$old_slave_param_comparison
=
$slave_param_comparison
;
let
$slave_param
=
Last_IO_Errno
;
let
$slave_param
=
Last_IO_Errno
;
let
$slave_param_comparison
=
!=
;
let
$slave_param_comparison
=
!=
;
...
@@ -43,19 +44,16 @@ source include/wait_for_slave_param.inc;
...
@@ -43,19 +44,16 @@ source include/wait_for_slave_param.inc;
let
$slave_error_message
=
;
let
$slave_error_message
=
;
let
$slave_param_comparison
=
$old_slave_param_comparison
;
let
$slave_param_comparison
=
$old_slave_param_comparison
;
if
(
$slave_io_errno
)
let
$_error
=
query_get_value
(
SHOW
SLAVE
STATUS
,
Last_IO_Errno
,
1
);
{
if
(
`SELECT $_error NOT IN ($slave_io_errno)`
)
{
let
$_error
=
query_get_value
(
SHOW
SLAVE
STATUS
,
Last_IO_Errno
,
1
);
if
(
`SELECT '$_error' != '$slave_io_errno'`
)
{
--
echo
****
Slave
stopped
with
wrong
error
code
:
$_error
(
expected
$slave_io_errno
)
****
--
echo
****
Slave
stopped
with
wrong
error
code
:
$_error
(
expected
$slave_io_errno
)
****
source
include
/
show_rpl_debug_info
.
inc
;
source
include
/
show_rpl_debug_info
.
inc
;
--
echo
****
Slave
stopped
with
wrong
error
code
:
$_error
(
expected
$slave_io_errno
)
****
--
echo
****
Slave
stopped
with
wrong
error
code
:
$_error
(
expected
$slave_io_errno
)
****
--
die
Slave
stopped
with
wrong
error
code
--
die
Slave
stopped
with
wrong
error
code
}
}
if
(
$show_slave_io_error
)
if
(
$show_slave_io_error
)
{
{
let
$error
=
query_get_value
(
"SHOW SLAVE STATUS"
,
Last_IO_Error
,
1
);
let
$error
=
query_get_value
(
"SHOW SLAVE STATUS"
,
Last_IO_Error
,
1
);
echo
Last_IO_Error
=
$error
;
echo
Last_IO_Error
=
$error
;
}
}
}
mysql-test/suite/rpl/r/rpl_get_master_version_and_clock.result
View file @
8cf9db67
...
@@ -15,7 +15,6 @@ slave is going to hang in get_master_version_and_clock
...
@@ -15,7 +15,6 @@ slave is going to hang in get_master_version_and_clock
slave is unblocked
slave is unblocked
SET DEBUG_SYNC='now SIGNAL signal.get_unix_timestamp';
SET DEBUG_SYNC='now SIGNAL signal.get_unix_timestamp';
Check network error happened here
Check network error happened here
NETWORK ERROR
set @@global.debug = "-d,'debug_lock.before_get_UNIX_TIMESTAMP'";
set @@global.debug = "-d,'debug_lock.before_get_UNIX_TIMESTAMP'";
stop slave;
stop slave;
SET @@global.debug= "+d,'debug_lock.before_get_SERVER_ID'";
SET @@global.debug= "+d,'debug_lock.before_get_SERVER_ID'";
...
@@ -24,7 +23,6 @@ slave is going to hang in get_master_version_and_clock
...
@@ -24,7 +23,6 @@ slave is going to hang in get_master_version_and_clock
slave is unblocked
slave is unblocked
SET DEBUG_SYNC='now SIGNAL signal.get_server_id';
SET DEBUG_SYNC='now SIGNAL signal.get_server_id';
Check network error happened here
Check network error happened here
NETWORK ERROR
set @@global.debug = "-d,'debug_lock.before_get_SERVER_ID'";
set @@global.debug = "-d,'debug_lock.before_get_SERVER_ID'";
set global debug= '';
set global debug= '';
reset master;
reset master;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment