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
340d93a8
Commit
340d93a8
authored
Apr 11, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: rpl.rpl_semi_sync_shutdown_await_ack
avoid using multiple files with the same functionality.
parent
e5c9904e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
mysql-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result
...-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result
+2
-2
mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test
mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test
+4
-10
No files found.
mysql-test/suite/rpl/r/rpl_semi_sync_shutdown_await_ack.result
View file @
340d93a8
...
...
@@ -505,8 +505,8 @@ disconnect con1;
connection default;
connection con2;
SHUTDOWN WAIT FOR ALL SLAVES;
connection server_2;
include/assert_grep.inc [Ensure the primary waited for the ACK of the killed thread]
# Ensure the primary waited for the ACK of the killed thread
FOUND 5 /Delaying shutdown to await semi-sync ACK/ in mysqld.1.err
connection default;
connection server_1;
connection server_2;
...
...
mysql-test/suite/rpl/t/rpl_semi_sync_shutdown_await_ack.test
View file @
340d93a8
...
...
@@ -206,7 +206,6 @@ SET GLOBAL debug_dbug="+d,simulate_delay_semisync_slave_reply";
--
echo
# Wait for thd to begin semi-sync wait..
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
information_schema
.
processlist
WHERE
state
=
'Waiting for semi-sync ACK from slave'
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
--
echo
# ..done
--
disconnect
con1
...
...
@@ -220,15 +219,10 @@ EOF
SHUTDOWN
WAIT
FOR
ALL
SLAVES
;
--
source
include
/
wait_until_disconnected
.
inc
# Run assert_grep on server_2 as it uses SQL commands for verification, but
# server_1 has gone away
--
connection
server_2
--
let
$assert_text
=
Ensure
the
primary
waited
for
the
ACK
of
the
killed
thread
--
let
$assert_select
=
Delaying
shutdown
to
await
semi
-
sync
ACK
--
let
$assert_file
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
--
let
$assert_count
=
5
--
let
$assert_only_after
=
CURRENT_TEST
--
source
include
/
assert_grep
.
inc
--
echo
# Ensure the primary waited for the ACK of the killed thread
--
let
$SEARCH_PATTERN
=
Delaying
shutdown
to
await
semi
-
sync
ACK
--
let
$SEARCH_FILE
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
--
source
include
/
search_pattern_in_file
.
inc
--
connection
default
--
source
include
/
wait_until_disconnected
.
inc
...
...
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