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
a6b92690
Commit
a6b92690
authored
Feb 12, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21556 : galera.lp1376747-4 MTR failed: Result length mismatch
Add proper wait condition instead of sleeps.
parent
f6663bfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
mysql-test/suite/galera/t/lp1376747-4.test
mysql-test/suite/galera/t/lp1376747-4.test
+8
-9
No files found.
mysql-test/suite/galera/t/lp1376747-4.test
View file @
a6b92690
...
@@ -27,25 +27,24 @@ INSERT INTO t1 VALUES (2,3);
...
@@ -27,25 +27,24 @@ INSERT INTO t1 VALUES (2,3);
--
connection
node_2a
--
connection
node_2a
SET
session
wsrep_sync_wait
=
0
;
SET
session
wsrep_sync_wait
=
0
;
SET
session
wsrep_causal_reads
=
OFF
;
SET
session
wsrep_causal_reads
=
OFF
;
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
--
sleep
1
--
send
FLUSH
TABLES
t1
WITH
READ
LOCK
;
--
send
FLUSH
TABLES
t1
WITH
READ
LOCK
;
--
connection
node_2
--
connection
node_2
# let the flush table wait in pause state before we unlock
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
USER
=
'system user'
AND
STATE
LIKE
'committed%'
;
# table otherwise there is window where-in flush table is
--
source
include
/
wait_condition
.
inc
# yet to wait in pause and unlock allows alter table to proceed.
# this is because send in asynchronous.
--
sleep
3
# this will release existing lock but will not resume
# the cluster as there is new FTRL that is still pausing it.
UNLOCK
TABLES
;
UNLOCK
TABLES
;
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
--
connection
node_2a
--
connection
node_2a
--
reap
--
reap
UNLOCK
TABLES
;
UNLOCK
TABLES
;
--
sleep
2
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
2
FROM
t1
;
--
source
include
/
wait_condition
.
inc
SHOW
CREATE
TABLE
t1
;
SHOW
CREATE
TABLE
t1
;
SELECT
*
from
t1
;
SELECT
*
from
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