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
84d4ab5b
Commit
84d4ab5b
authored
Feb 19, 2016
by
Philip Stoev
Committed by
Jan Lindström
Mar 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs MW-245: Galera MTR Tests: additional tests for wsrep_reject_queries, wsrep_dirty_reads
parent
8f717ed3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
mysql-test/suite/galera/r/galera_var_reject_queries.result
mysql-test/suite/galera/r/galera_var_reject_queries.result
+21
-0
mysql-test/suite/galera/t/galera_var_reject_queries.test
mysql-test/suite/galera/t/galera_var_reject_queries.test
+44
-0
No files found.
mysql-test/suite/galera/r/galera_var_reject_queries.result
0 → 100644
View file @
84d4ab5b
CREATE TABLE t1 (f1 INTEGER);
SET SESSION wsrep_reject_queries = ALL;
ERROR HY000: Variable 'wsrep_reject_queries' is a GLOBAL variable and should be set with SET GLOBAL
SET GLOBAL wsrep_reject_queries = ALL;
SELECT * FROM t1;
ERROR 08S01: WSREP has not yet prepared node for application use
SET GLOBAL wsrep_reject_queries = ALL_KILL;
ERROR HY000: Lost connection to MySQL server during query
SELECT * FROM t1;
ERROR 70100: Connection was killed
SELECT * FROM t1;
ERROR 08S01: WSREP has not yet prepared node for application use
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
VARIABLE_VALUE = 2
1
INSERT INTO t1 VALUES (1);
SET GLOBAL wsrep_reject_queries = NONE;
SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1
1
DROP TABLE t1;
mysql-test/suite/galera/t/galera_var_reject_queries.test
0 → 100644
View file @
84d4ab5b
#
# Test wsrep_reject_queries
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
CREATE
TABLE
t1
(
f1
INTEGER
);
--
connect
node_1a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
--
connection
node_1
--
error
ER_GLOBAL_VARIABLE
SET
SESSION
wsrep_reject_queries
=
ALL
;
SET
GLOBAL
wsrep_reject_queries
=
ALL
;
--
error
ER_UNKNOWN_COM_ERROR
SELECT
*
FROM
t1
;
# Lost connection
--
error
2013
SET
GLOBAL
wsrep_reject_queries
=
ALL_KILL
;
--
connection
node_1a
--
error
ER_CONNECTION_KILLED
SELECT
*
FROM
t1
;
--
connect
node_1b
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
--
error
ER_UNKNOWN_COM_ERROR
SELECT
*
FROM
t1
;
# Confirm that replication continues
--
connection
node_2
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
INSERT
INTO
t1
VALUES
(
1
);
--
connect
node_1c
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
SET
GLOBAL
wsrep_reject_queries
=
NONE
;
SELECT
COUNT
(
*
)
=
1
FROM
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