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
df5b90e1
Commit
df5b90e1
authored
Mar 13, 2017
by
Philip Stoev
Committed by
Jan Lindström
Aug 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: Extend test for MW-86 with additional SHOW commands (part #2)
parent
fae7d856
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
196 additions
and
8 deletions
+196
-8
mysql-test/suite/galera/r/MW-86.result
mysql-test/suite/galera/r/MW-86.result
+52
-5
mysql-test/suite/galera/t/MW-86.test
mysql-test/suite/galera/t/MW-86.test
+144
-3
No files found.
mysql-test/suite/galera/r/MW-86.result
View file @
df5b90e1
SET SESSION wsrep_sync_wait = 1;
SET GLOBAL DEBUG = "d,sync.wsrep_apply_cb";
CREATE DATABASE db1;
SHOW BINARY LOGS;
SHOW BINLOG EVENTS;
SHOW COLUMNS FROM t1;
SHOW CREATE DATABASE db1;
ERROR 42000: Unknown database 'db1'
SHOW CREATE EVENT e1;
SHOW CREATE FUNCTION f1;
SHOW CREATE PROCEDURE p1;
SHOW CREATE TABLE t1;
SHOW CREATE TRIGGER tr1;
SHOW CREATE VIEW v1;
SHOW DATABASES;
SHOW ENGINE InnoDB STATUS;
SHOW FUNCTION CODE f1;
SHOW FUNCTION STATUS;
SHOW GRANTS FOR 'root'@'localhost';
SHOW INDEX FROM t1;
SHOW OPEN TABLES;
SHOW PROCEDURE CODE p1;
SHOW PROCEDURE STATUS;
SHOW PRIVILEGES;
SHOW STATUS LIKE 'wsrep_cluster_size';
SHOW TABLE STATUS;
SHOW TABLES;
SHOW TRIGGERS;
SHOW GLOBAL VARIABLES LIKE 'foo_bar';
SHOW WARNINGS;
SET GLOBAL DEBUG = "";
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
SET SESSION wsrep_sync_wait = 8;
DROP DATABASE db1;
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
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;
CREATE TABLE q (f1 INTEGER) ENGINE=InnoDB;
SHOW BINARY LOGS;
SHOW BINLOG EVENTS;
SHOW COLUMNS FROM t1;
SHOW CREATE DATABASE db1;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SHOW CREATE EVENT e1;
SHOW CREATE FUNCTION f1;
SHOW CREATE PROCEDURE p1;
SHOW CREATE TABLE t1;
SHOW CREATE TRIGGER tr1;
SHOW CREATE VIEW v1;
SHOW DATABASES;
SHOW ENGINE InnoDB STATUS;
SHOW FUNCTION CODE f1;
SHOW FUNCTION STATUS;
SHOW GRANTS FOR 'root'@'localhost';
SHOW INDEX FROM t1;
SHOW OPEN TABLES;
SHOW PROCEDURE CODE p1;
SHOW PROCEDURE STATUS;
SHOW PRIVILEGES;
SHOW STATUS LIKE 'wsrep_cluster_size';
SHOW TABLE STATUS;
SHOW TABLES;
SHOW TRIGGERS;
SHOW GLOBAL VARIABLES LIKE 'foo_bar';
SHOW WARNINGS;
SET GLOBAL DEBUG = "";
SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
DROP DATABASE db1;
mysql-test/suite/galera/t/MW-86.test
View file @
df5b90e1
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_binlog_format_row
.
inc
#
# Test 1: SHOW commands no longer obey wsrep_sync_wait = 1
...
...
@@ -7,13 +8,76 @@
--
connection
node_2
SET
SESSION
wsrep_sync_wait
=
1
;
SET
GLOBAL
DEBUG
=
"d,sync.wsrep_apply_cb"
;
--
disable_result_log
--
connection
node_1
CREATE
DATABASE
db1
;
--
connection
node_2
SHOW
BINARY
LOGS
;
SHOW
BINLOG
EVENTS
;
--
error
ER_NO_SUCH_TABLE
SHOW
COLUMNS
FROM
t1
;
--
error
ER_BAD_DB_ERROR
SHOW
CREATE
DATABASE
db1
;
--
error
ER_EVENT_DOES_NOT_EXIST
SHOW
CREATE
EVENT
e1
;
--
error
ER_SP_DOES_NOT_EXIST
SHOW
CREATE
FUNCTION
f1
;
--
error
ER_SP_DOES_NOT_EXIST
SHOW
CREATE
PROCEDURE
p1
;
--
error
ER_NO_SUCH_TABLE
SHOW
CREATE
TABLE
t1
;
--
error
ER_TRG_DOES_NOT_EXIST
SHOW
CREATE
TRIGGER
tr1
;
--
error
ER_NO_SUCH_TABLE
SHOW
CREATE
VIEW
v1
;
SHOW
DATABASES
;
SHOW
ENGINE
InnoDB
STATUS
;
--
error
ER_SP_DOES_NOT_EXIST
SHOW
FUNCTION
CODE
f1
;
SHOW
FUNCTION
STATUS
;
SHOW
GRANTS
FOR
'root'
@
'localhost'
;
--
error
ER_NO_SUCH_TABLE
SHOW
INDEX
FROM
t1
;
SHOW
OPEN
TABLES
;
--
error
ER_SP_DOES_NOT_EXIST
SHOW
PROCEDURE
CODE
p1
;
SHOW
PROCEDURE
STATUS
;
SHOW
PRIVILEGES
;
SHOW
STATUS
LIKE
'wsrep_cluster_size'
;
SHOW
TABLE
STATUS
;
SHOW
TABLES
;
SHOW
TRIGGERS
;
SHOW
GLOBAL
VARIABLES
LIKE
'foo_bar'
;
--
error
0
SHOW
WARNINGS
;
SET
GLOBAL
DEBUG
=
""
;
SET
DEBUG_SYNC
=
"now SIGNAL signal.wsrep_apply_cb"
;
...
...
@@ -27,20 +91,97 @@ DROP DATABASE db1;
--
connection
node_2
--
let
$wsrep_provider_options_orig
=
`SELECT @@wsrep_provider_options`
SET
GLOBAL
wsrep_provider_options
=
"repl.causal_read_timeout=PT0.1S"
;
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
;
CREATE
TABLE
q
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
--
connection
node_2
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
BINARY
LOGS
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
BINLOG
EVENTS
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
COLUMNS
FROM
t1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
DATABASE
db1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
EVENT
e1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
FUNCTION
f1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
PROCEDURE
p1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
TABLE
t1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
TRIGGER
tr1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
CREATE
VIEW
v1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
DATABASES
;
--
error
0
SHOW
ENGINE
InnoDB
STATUS
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
FUNCTION
CODE
f1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
FUNCTION
STATUS
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
GRANTS
FOR
'root'
@
'localhost'
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
INDEX
FROM
t1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
OPEN
TABLES
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
PROCEDURE
CODE
p1
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
PROCEDURE
STATUS
;
--
error
0
SHOW
PRIVILEGES
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
STATUS
LIKE
'wsrep_cluster_size'
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
TABLE
STATUS
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
TABLES
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
TRIGGERS
;
--
error
ER_LOCK_WAIT_TIMEOUT
SHOW
GLOBAL
VARIABLES
LIKE
'foo_bar'
;
--
error
0
SHOW
WARNINGS
;
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
"
SET
SESSION
wsrep_sync_wait
=
15
;
DROP
TABLE
q
;
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