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
b633dbda
Commit
b633dbda
authored
Dec 23, 2015
by
sjaakola
Committed by
Nirbhay Choubey
Feb 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs codership/mysql-wsrep#237
- test for FLUSH TABLES hang in slave node
parent
32df0b1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/suite/galera/r/mysql-wsrep#237.result
mysql-test/suite/galera/r/mysql-wsrep#237.result
+10
-0
mysql-test/suite/galera/t/mysql-wsrep#237.test
mysql-test/suite/galera/t/mysql-wsrep#237.test
+31
-0
No files found.
mysql-test/suite/galera/r/mysql-wsrep#237.result
0 → 100644
View file @
b633dbda
CREATE TABLE t (f1 INTEGER PRIMARY KEY) Engine=InnoDB;
SET DEBUG_SYNC = 'wsrep_before_replication WAIT_FOR continue';
INSERT INTO t values (1);;
SET SESSION wsrep_sync_wait = 0;
FLUSH TABLES;
SELECT SLEEP(1);
SLEEP(1)
0
SET DEBUG_SYNC= 'now SIGNAL continue';
DROP TABLE t;
mysql-test/suite/galera/t/mysql-wsrep#237.test
0 → 100644
View file @
b633dbda
# hang because of replicated FLUSH TABLE command
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_debug_sync
.
inc
CREATE
TABLE
t
(
f1
INTEGER
PRIMARY
KEY
)
Engine
=
InnoDB
;
--
connection
node_1
SET
DEBUG_SYNC
=
'wsrep_before_replication WAIT_FOR continue'
;
--
send
INSERT
INTO
t
values
(
1
);
--
connect
node_1a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
--
connection
node_1a
SET
SESSION
wsrep_sync_wait
=
0
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'debug sync point: wsrep_before_replication'
--
source
include
/
wait_condition
.
inc
--
connection
node_2
FLUSH
TABLES
;
--
connection
node_1a
SELECT
SLEEP
(
1
);
SET
DEBUG_SYNC
=
'now SIGNAL continue'
;
--
connection
node_1
--
reap
DROP
TABLE
t
;
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