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
3177d266
Commit
3177d266
authored
Sep 19, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13873: galera.galera_suspend_slave failed in buildbot with wrong error code
Add wsrep_sync_wait as we want INSERT to fail.
parent
45712a9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
mysql-test/suite/galera/r/galera_suspend_slave.result
mysql-test/suite/galera/r/galera_suspend_slave.result
+2
-0
mysql-test/suite/galera/t/galera_suspend_slave.test
mysql-test/suite/galera/t/galera_suspend_slave.test
+3
-0
No files found.
mysql-test/suite/galera/r/galera_suspend_slave.result
View file @
3177d266
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
Suspending node_2 ...
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_sync_wait = 15;
INSERT INTO t1 VALUES (1);
Got one of the listed errors
Resuming node_2 ...
SET SESSION wsrep_sync_wait = 0;
INSERT INTO t1 VALUES (1);
SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*) = 1 FROM t1;
...
...
mysql-test/suite/galera/t/galera_suspend_slave.test
View file @
3177d266
...
...
@@ -34,6 +34,8 @@ SET SESSION wsrep_sync_wait = 0;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
SET
SESSION
wsrep_sync_wait
=
15
;
--
error
ER_UNKNOWN_COM_ERROR
,
ER_LOCK_WAIT_TIMEOUT
,
ER_LOCK_DEADLOCK
,
ER_ERROR_DURING_COMMIT
INSERT
INTO
t1
VALUES
(
1
);
...
...
@@ -46,6 +48,7 @@ INSERT INTO t1 VALUES (1);
exit
(
0
);
EOF
SET
SESSION
wsrep_sync_wait
=
0
;
--
source
include
/
wait_until_ready
.
inc
INSERT
INTO
t1
VALUES
(
1
);
...
...
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