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
dda11446
Commit
dda11446
authored
Apr 04, 2016
by
Philip Stoev
Committed by
Nirbhay Choubey
Aug 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: Fixed tests to account for GAL-391 , GAL-374
parent
d45b5826
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
mysql-test/suite/galera/r/galera_rsu_wsrep_desync.result
mysql-test/suite/galera/r/galera_rsu_wsrep_desync.result
+3
-4
mysql-test/suite/galera/t/galera_rsu_wsrep_desync.test
mysql-test/suite/galera/t/galera_rsu_wsrep_desync.test
+17
-9
No files found.
mysql-test/suite/galera/r/galera_rsu_wsrep_desync.result
View file @
dda11446
...
...
@@ -22,12 +22,11 @@ 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';
SET DEBUG_SYNC = 'alter_table_before_
create_table_no_lock
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 GLOBAL wsrep_desync=1;;
SET DEBUG_SYNC= 'now SIGNAL continue';
SET GLOBAL wsrep_desync=0;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
...
...
mysql-test/suite/galera/t/galera_rsu_wsrep_desync.test
View file @
dda11446
...
...
@@ -17,9 +17,11 @@ 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
--
connect
ion
node_1a
--
connect
node_1b
,
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
...
...
@@ -44,24 +46,32 @@ 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'
;
SET
DEBUG_SYNC
=
'alter_table_before_
create_table_no_lock
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
'
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'debug sync point: alter_table_before_
create_table_no_lock
'
--
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
;
# wsrep_desync=1 will block
--
send
SET
GLOBAL
wsrep_desync
=
1
;
--
connection
node_1b
--
sleep
2
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'exit open_tables()'
and
INFO
=
'SET GLOBAL wsrep_desync=1'
--
source
include
/
wait_condition
.
inc
SET
DEBUG_SYNC
=
'now SIGNAL continue'
;
--
connection
node_1
--
reap
--
connection
node_1a
--
reap
SET
GLOBAL
wsrep_desync
=
0
;
SHOW
CREATE
TABLE
t1
;
# Restore old state
...
...
@@ -74,5 +84,3 @@ 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