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
9afbb106
Commit
9afbb106
authored
Oct 25, 2019
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wait_condition to stabilize.
parent
2b5f4b3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
mysql-test/suite/galera_sr/r/GCF-1008.result
mysql-test/suite/galera_sr/r/GCF-1008.result
+20
-20
mysql-test/suite/galera_sr/t/GCF-1008.inc
mysql-test/suite/galera_sr/t/GCF-1008.inc
+6
-4
No files found.
mysql-test/suite/galera_sr/r/GCF-1008.result
View file @
9afbb106
...
...
@@ -13,26 +13,26 @@ connection node_2;
COMMIT;
connection node_2b;
SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*)
=
0 FROM t1;
COUNT(*) =
0
1
SELECT COUNT(*)
AS EXPECT_
0 FROM t1;
EXPECT_
0
0
connection node_1;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*)
=
1 FROM t1;
COUNT(*) =
1
SELECT COUNT(*)
AS EXPECT_
1 FROM t1;
EXPECT_
1
1
REPLACE INTO t1 VALUES (1,'y');
connection node_2b;
SELECT COUNT(*)
=
0 FROM t1;
COUNT(*) =
0
1
SELECT COUNT(*)
AS EXPECT_
0 FROM t1;
EXPECT_
0
0
connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=before_local_commit_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2;
SELECT COUNT(*)
=
1 FROM t1;
COUNT(*) =
1
SELECT COUNT(*)
AS EXPECT_
1 FROM t1;
EXPECT_
1
1
DROP TABLE t1;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(255)) ENGINE=InnoDB;
...
...
@@ -46,25 +46,25 @@ connection node_2;
COMMIT;
connection node_2b;
SET SESSION wsrep_sync_wait = 0;
SELECT COUNT(*)
=
0 FROM t1;
COUNT(*) =
0
1
SELECT COUNT(*)
AS EXPECT_
0 FROM t1;
EXPECT_
0
0
connection node_1;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_trx_fragment_size = 1;
SELECT COUNT(*)
=
1 FROM t1;
COUNT(*) =
1
SELECT COUNT(*)
AS EXPECT_
1 FROM t1;
EXPECT_
1
1
REPLACE INTO t1 VALUES (1,'y');
connection node_2b;
SELECT COUNT(*)
=
0 FROM t1;
COUNT(*) =
0
1
SELECT COUNT(*)
AS EXPECT_
0 FROM t1;
EXPECT_
0
0
connection node_2a;
SET GLOBAL wsrep_provider_options = 'signal=before_certify_apply_monitor_enter';
SET GLOBAL wsrep_provider_options = 'dbug=';
connection node_2;
SELECT COUNT(*)
=
1 FROM t1;
COUNT(*) =
1
SELECT COUNT(*)
AS EXPECT_
1 FROM t1;
EXPECT_
1
1
DROP TABLE t1;
mysql-test/suite/galera_sr/t/GCF-1008.inc
View file @
9afbb106
...
...
@@ -14,16 +14,16 @@ INSERT INTO t1 VALUES (1, 'x');
--
connection
node_2b
--
sleep
1
SET
SESSION
wsrep_sync_wait
=
0
;
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
SELECT
COUNT
(
*
)
AS
EXPECT_
0
FROM
t1
;
--
connection
node_1
SET
SESSION
wsrep_sync_wait
=
0
;
SET
SESSION
wsrep_trx_fragment_size
=
1
;
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
SELECT
COUNT
(
*
)
AS
EXPECT_
1
FROM
t1
;
REPLACE
INTO
t1
VALUES
(
1
,
'y'
);
--
connection
node_2b
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
SELECT
COUNT
(
*
)
AS
EXPECT_
0
FROM
t1
;
--
connection
node_2a
--
source
include
/
galera_signal_sync_point
.
inc
...
...
@@ -31,6 +31,8 @@ SELECT COUNT(*) = 0 FROM t1;
--
connection
node_2
--
reap
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
AS
EXPECT_1
FROM
t1
;
DROP
TABLE
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