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
7002948b
Commit
7002948b
authored
Feb 12, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-21517 : Galera test galera_sr.GCF-561 failure: Result length mismatch
Add wait conditions.
parent
a3f3d40b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
mysql-test/suite/galera_sr/r/GCF-561.result
mysql-test/suite/galera_sr/r/GCF-561.result
+3
-3
mysql-test/suite/galera_sr/t/GCF-561.test
mysql-test/suite/galera_sr/t/GCF-561.test
+7
-2
No files found.
mysql-test/suite/galera_sr/r/GCF-561.result
View file @
7002948b
...
...
@@ -12,9 +12,9 @@ INSERT INTO t1 VALUES (4, 4);
INSERT INTO t1 VALUES (5, 5);
connection node_2;
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT COUNT(*)
> 0
FROM mysql.wsrep_streaming_log;
COUNT(*) > 0
1
SELECT COUNT(*)
AS EXPECT_5
FROM mysql.wsrep_streaming_log;
EXPECT_5
5
ALTER TABLE t1 DROP COLUMN f2;
SELECT COUNT(*) AS EXPECT_0 FROM t1;
EXPECT_0
...
...
mysql-test/suite/galera_sr/t/GCF-561.test
View file @
7002948b
...
...
@@ -20,9 +20,12 @@ INSERT INTO t1 VALUES (5, 5);
--
connection
node_2
SET
SESSION
TRANSACTION
ISOLATION
LEVEL
READ
UNCOMMITTED
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
>
0
FROM
t1
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
5
FROM
t1
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
5
FROM
mysql
.
wsrep_streaming_log
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
>
0
FROM
mysql
.
wsrep_streaming_log
;
SELECT
COUNT
(
*
)
AS
EXPECT_5
FROM
mysql
.
wsrep_streaming_log
;
ALTER
TABLE
t1
DROP
COLUMN
f2
;
...
...
@@ -35,6 +38,8 @@ SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
--
error
ER_LOCK_DEADLOCK
INSERT
INTO
t1
VALUES
(
6
,
6
);
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
wsrep_streaming_log
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
AS
EXPECT_0
FROM
mysql
.
wsrep_streaming_log
;
# DDL is now in effect
...
...
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