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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2438afbf
Commit
2438afbf
authored
Feb 16, 2016
by
Philip Stoev
Committed by
Nirbhay Choubey
Feb 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR tests: MW-246 codership/mysql-wsrep#247 Additional tests around RSU and wsrep_desync
parent
13627d49
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
0 deletions
+114
-0
mysql-test/suite/galera/r/galera_rsu_wsrep_desync.result
mysql-test/suite/galera/r/galera_rsu_wsrep_desync.result
+40
-0
mysql-test/suite/galera/t/galera_rsu_wsrep_desync.test
mysql-test/suite/galera/t/galera_rsu_wsrep_desync.test
+74
-0
No files found.
mysql-test/suite/galera/r/galera_rsu_wsrep_desync.result
0 → 100644
View file @
2438afbf
CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB;
SET GLOBAL wsrep_desync=1;
SET wsrep_OSU_method=RSU;
SET DEBUG_SYNC = 'alter_table_before_open_tables WAIT_FOR continue';
ALTER TABLE t1 ADD COLUMN f2 INTEGER;;
SET GLOBAL wsrep_desync=0;
SET DEBUG_SYNC= 'now SIGNAL continue';
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`f1` int(11) DEFAULT NULL,
`f2` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
SHOW VARIABLES LIKE 'wsrep_desync';
Variable_name Value
wsrep_desync OFF
SET wsrep_OSU_method=TOI;
DROP TABLE t1;
CREATE TABLE t1 (f1 INTEGER) Engine=InnoDB;
SET GLOBAL wsrep_desync=0;
Warnings:
Warning 1231 'wsrep_desync' is already OFF.
SET wsrep_OSU_method=RSU;
SET DEBUG_SYNC = 'alter_table_before_open_tables WAIT_FOR continue';
ALTER TABLE t1 ADD COLUMN f2 INTEGER;;
SET GLOBAL wsrep_desync=1;
ERROR HY000: Operation 'desync' failed for SET GLOBAL wsrep_desync=1
SET GLOBAL wsrep_desync=0;
SET DEBUG_SYNC= 'now SIGNAL continue';
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`f1` int(11) DEFAULT NULL,
`f2` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
SET wsrep_OSU_method=TOI;
DROP TABLE t1;
CALL mtr.add_suppression("Protocol violation");
CALL mtr.add_suppression("desync failed");
CALL mtr.add_suppression("Protocol violation");
mysql-test/suite/galera/t/galera_rsu_wsrep_desync.test
0 → 100644
View file @
2438afbf
#
# Test manipulating wsrep_desync while an RSU operation is in progress
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_debug_sync
.
inc
# First, test wsrep_desync 1 > 0 during DDL
--
connection
node_1
CREATE
TABLE
t1
(
f1
INTEGER
)
Engine
=
InnoDB
;
SET
GLOBAL
wsrep_desync
=
1
;
SET
wsrep_OSU_method
=
RSU
;
SET
DEBUG_SYNC
=
'alter_table_before_open_tables WAIT_FOR continue'
;
--
send
ALTER
TABLE
t1
ADD
COLUMN
f2
INTEGER
;
--
connect
node_1a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
--
connection
node_1a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'debug sync point: alter_table_before_open_tables'
--
source
include
/
wait_condition
.
inc
SET
GLOBAL
wsrep_desync
=
0
;
SET
DEBUG_SYNC
=
'now SIGNAL continue'
;
--
connection
node_1
--
reap
SHOW
CREATE
TABLE
t1
;
SHOW
VARIABLES
LIKE
'wsrep_desync'
;
SET
wsrep_OSU_method
=
TOI
;
DROP
TABLE
t1
;
# Next, test wsrep_desync 0 > 1 during DDL, currently not allowed
--
connection
node_1
CREATE
TABLE
t1
(
f1
INTEGER
)
Engine
=
InnoDB
;
SET
GLOBAL
wsrep_desync
=
0
;
SET
wsrep_OSU_method
=
RSU
;
SET
DEBUG_SYNC
=
'alter_table_before_open_tables WAIT_FOR continue'
;
--
send
ALTER
TABLE
t1
ADD
COLUMN
f2
INTEGER
;
--
connection
node_1a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'debug sync point: alter_table_before_open_tables'
--
source
include
/
wait_condition
.
inc
# This transition is currently not allowed
--
error
ER_CANNOT_USER
SET
GLOBAL
wsrep_desync
=
1
;
SET
GLOBAL
wsrep_desync
=
0
;
SET
DEBUG_SYNC
=
'now SIGNAL continue'
;
--
connection
node_1
--
reap
SHOW
CREATE
TABLE
t1
;
SET
wsrep_OSU_method
=
TOI
;
DROP
TABLE
t1
;
CALL
mtr
.
add_suppression
(
"Protocol violation"
);
CALL
mtr
.
add_suppression
(
"desync failed"
);
--
connection
node_2
CALL
mtr
.
add_suppression
(
"Protocol violation"
);
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