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
141b390d
Commit
141b390d
authored
Jun 25, 2020
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.4-MDEV-22729-2' into 10.4
parents
dc68846e
7bd11fb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
19 deletions
+6
-19
mysql-test/suite/galera/r/galera_slave_replay.result
mysql-test/suite/galera/r/galera_slave_replay.result
+1
-5
mysql-test/suite/galera/t/galera_slave_replay.test
mysql-test/suite/galera/t/galera_slave_replay.test
+5
-14
No files found.
mysql-test/suite/galera/r/galera_slave_replay.result
View file @
141b390d
...
@@ -70,7 +70,6 @@ SET AUTOCOMMIT=ON;
...
@@ -70,7 +70,6 @@ SET AUTOCOMMIT=ON;
START TRANSACTION;
START TRANSACTION;
UPDATE t1 SET f2 = 'd' WHERE f1 = 3;
UPDATE t1 SET f2 = 'd' WHERE f1 = 3;
connection node_2a;
connection node_2a;
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_master_enter_sync';
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
connection node_1;
connection node_1;
UPDATE test.t1 SET f2 = 'e' WHERE f1 = 3;
UPDATE test.t1 SET f2 = 'e' WHERE f1 = 3;
...
@@ -82,10 +81,6 @@ connection node_2a;
...
@@ -82,10 +81,6 @@ connection node_2a;
SET GLOBAL debug_dbug = "";
SET GLOBAL debug_dbug = "";
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
connection node_2a;
connection node_2a;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_master_enter_sync';
SET DEBUG_SYNC = "RESET";
connection node_2a;
set session wsrep_sync_wait=15;
set session wsrep_sync_wait=15;
SELECT COUNT(*) = 1 FROM test.t1 WHERE f2 = 'e';
SELECT COUNT(*) = 1 FROM test.t1 WHERE f2 = 'e';
COUNT(*) = 1
COUNT(*) = 1
...
@@ -93,6 +88,7 @@ COUNT(*) = 1
...
@@ -93,6 +88,7 @@ COUNT(*) = 1
set session wsrep_sync_wait=0;
set session wsrep_sync_wait=0;
STOP SLAVE;
STOP SLAVE;
RESET SLAVE;
RESET SLAVE;
SET DEBUG_SYNC = "RESET";
DROP TABLE t1;
DROP TABLE t1;
connection node_3;
connection node_3;
DROP TABLE t1;
DROP TABLE t1;
...
...
mysql-test/suite/galera/t/galera_slave_replay.test
View file @
141b390d
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
#
#
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_log_bin
.
inc
--
source
include
/
have_debug
.
inc
--
source
include
/
have_debug
.
inc
--
source
include
/
have_debug_sync
.
inc
--
source
include
/
have_debug_sync
.
inc
--
source
include
/
galera_have_debug_sync
.
inc
--
source
include
/
galera_have_debug_sync
.
inc
...
@@ -31,10 +32,10 @@ RESET MASTER;
...
@@ -31,10 +32,10 @@ RESET MASTER;
#
#
# nodes 1 and 2 form a galera cluster, node 2 operates as slave for native MariaDB
n
aster in node 3
# nodes 1 and 2 form a galera cluster, node 2 operates as slave for native MariaDB
m
aster in node 3
#
#
--
disable_query_log
--
disable_query_log
--
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_USER
=
'root'
,
MASTER_PORT
=
$NODE_MYPORT_3
;
--
eval
CHANGE
MASTER
TO
MASTER_HOST
=
'127.0.0.1'
,
MASTER_USER
=
'root'
,
MASTER_PORT
=
$NODE_MYPORT_3
;
--
enable_query_log
--
enable_query_log
START
SLAVE
;
START
SLAVE
;
...
@@ -154,10 +155,6 @@ UPDATE t1 SET f2 = 'd' WHERE f1 = 3;
...
@@ -154,10 +155,6 @@ UPDATE t1 SET f2 = 'd' WHERE f1 = 3;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
4
FROM
test
.
t1
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
4
FROM
test
.
t1
;
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
# Block the commit
--
let
$galera_sync_point
=
commit_monitor_master_enter_sync
--
source
include
/
galera_set_sync_point
.
inc
# block applier
# block applier
SET
GLOBAL
debug_dbug
=
"d,sync.wsrep_apply_cb"
;
SET
GLOBAL
debug_dbug
=
"d,sync.wsrep_apply_cb"
;
...
@@ -176,20 +173,13 @@ SET SESSION DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_cb_reached";
...
@@ -176,20 +173,13 @@ SET SESSION DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_cb_reached";
COMMIT
;
COMMIT
;
--
connection
node_2a
--
connection
node_2a
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
$expected_cert_failures
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_local_cert_failures'
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
$expected_cert_failures
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_local_cert_failures'
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
# release the applier from node 1
# release the applier from node 1
SET
GLOBAL
debug_dbug
=
""
;
SET
GLOBAL
debug_dbug
=
""
;
SET
DEBUG_SYNC
=
"now SIGNAL signal.wsrep_apply_cb"
;
SET
DEBUG_SYNC
=
"now SIGNAL signal.wsrep_apply_cb"
;
# Unblock the async slave commit
--
connection
node_2a
--
source
include
/
galera_clear_sync_point
.
inc
--
source
include
/
galera_signal_sync_point
.
inc
SET
DEBUG_SYNC
=
"RESET"
;
--
connection
node_2a
--
connection
node_2a
set
session
wsrep_sync_wait
=
15
;
set
session
wsrep_sync_wait
=
15
;
...
@@ -198,6 +188,7 @@ set session wsrep_sync_wait=0;
...
@@ -198,6 +188,7 @@ set session wsrep_sync_wait=0;
STOP
SLAVE
;
STOP
SLAVE
;
RESET
SLAVE
;
RESET
SLAVE
;
SET
DEBUG_SYNC
=
"RESET"
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
...
...
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