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
3d470855
Commit
3d470855
authored
Mar 08, 2017
by
Daniele Sciascia
Committed by
Jan Lindström
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MW-86 MTR test: check that SHOW commands no longer obey wsrep_sync_wait = 1
parent
f20b21a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
0 deletions
+64
-0
mysql-test/suite/galera/r/MW-86.result
mysql-test/suite/galera/r/MW-86.result
+18
-0
mysql-test/suite/galera/t/MW-86.test
mysql-test/suite/galera/t/MW-86.test
+46
-0
No files found.
mysql-test/suite/galera/r/MW-86.result
0 → 100644
View file @
3d470855
SET SESSION wsrep_sync_wait = 1;
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
CREATE DATABASE db1;
SHOW CREATE DATABASE db1;
ERROR 42000: Unknown database 'db1'
SET GLOBAL DEBUG = "";
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
SET SESSION wsrep_sync_wait = 8;
DROP DATABASE db1;
SET SESSION wsrep_sync_wait = 8;
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
CREATE DATABASE db1;
SHOW CREATE DATABASE db1;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SET GLOBAL DEBUG = "";
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
DROP DATABASE db1;
mysql-test/suite/galera/t/MW-86.test
0 → 100644
View file @
3d470855
--
source
include
/
galera_cluster
.
inc
#
# Test 1: SHOW commands no longer obey wsrep_sync_wait = 1
#
--
connection
node_2
SET
SESSION
wsrep_sync_wait
=
1
;
SET
GLOBAL
DEBUG
=
"d,sync.wsrep_apply_cb"
;
--
connection
node_1
CREATE
DATABASE
db1
;
--
connection
node_2
--
error
ER_BAD_DB_ERROR
SHOW
CREATE
DATABASE
db1
;
SET
GLOBAL
DEBUG
=
""
;
SET
DEBUG_SYNC
=
"now SIGNAL signal.wsrep_apply_cb"
;
SET
SESSION
wsrep_sync_wait
=
8
;
DROP
DATABASE
db1
;
#
# Test 2: SHOW commands now obey wsrep_sync_wait = 8
#
--
connection
node_2
--
let
$wsrep_provider_options_orig
=
`SELECT @@wsrep_provider_options`
SET
SESSION
wsrep_sync_wait
=
8
;
SET
GLOBAL
DEBUG
=
"d,sync.wsrep_apply_cb"
;
SET
GLOBAL
wsrep_provider_options
=
"repl.causal_read_timeout=PT0.1S"
;
--
connection
node_1
CREATE
DATABASE
db1
;
--
connection
node_2
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
DATABASE
db1
;
SET
GLOBAL
DEBUG
=
""
;
SET
DEBUG_SYNC
=
"now SIGNAL signal.wsrep_apply_cb"
;
DROP
DATABASE
db1
;
--
disable_query_log
--
eval
SET
GLOBAL
wsrep_provider_options
=
"
$wsrep_provider_options_orig
"
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