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
b04be43e
Commit
b04be43e
authored
Nov 17, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-24165 : Galera test failure on galera_var_ignore_apply_errors
Add wait conditions.
parent
bbf0b55c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
mysql-test/suite/galera/t/galera_var_ignore_apply_errors.test
...l-test/suite/galera/t/galera_var_ignore_apply_errors.test
+26
-0
No files found.
mysql-test/suite/galera/t/galera_var_ignore_apply_errors.test
View file @
b04be43e
...
...
@@ -75,6 +75,9 @@ DELETE FROM t1 WHERE f1 = 1;
--
connection
node_1
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
--
connection
node_2
--
source
include
/
galera_wait_ready
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
DROP
TABLE
t1
;
...
...
@@ -96,6 +99,9 @@ COMMIT;
--
connection
node_1
SELECT
COUNT
(
*
)
as
expect_1
FROM
t1
;
--
connection
node_2
--
source
include
/
galera_wait_ready
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
as
expect_1
FROM
t1
;
DROP
TABLE
t1
;
...
...
@@ -120,6 +126,11 @@ DELETE FROM t1;
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
--
connection
node_2
--
source
include
/
galera_wait_ready
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
DROP
TABLE
t1
;
...
...
@@ -154,6 +165,11 @@ SET AUTOCOMMIT=ON;
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
--
connection
node_2
--
source
include
/
galera_wait_ready
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
DROP
TABLE
t1
;
...
...
@@ -183,6 +199,11 @@ DELETE t1, t2 FROM t1 JOIN t2 WHERE t1.f1 = t2.f1;
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
--
connection
node_2
--
source
include
/
galera_wait_ready
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
SELECT
COUNT
(
*
)
as
expect_0
FROM
t1
;
DROP
TABLE
t1
,
t2
;
...
...
@@ -212,6 +233,11 @@ SELECT COUNT(*) as expect_0 FROM parent;
SELECT
COUNT
(
*
)
as
expect_0
FROM
child
;
--
connection
node_2
--
source
include
/
galera_wait_ready
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
SELECT
COUNT
(
*
)
as
expect_0
FROM
parent
;
SELECT
COUNT
(
*
)
as
expect_0
FROM
child
;
...
...
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