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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d01328d7
Commit
d01328d7
authored
Sep 13, 2015
by
Teemu Ollakka
Committed by
Nirbhay Choubey
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Helpers to deal with galera dbug sync points.
parent
17b5cb61
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
15 deletions
+31
-15
mysql-test/include/galera_clear_sync_point.inc
mysql-test/include/galera_clear_sync_point.inc
+1
-0
mysql-test/include/galera_set_sync_point.inc
mysql-test/include/galera_set_sync_point.inc
+1
-0
mysql-test/include/galera_signal_sync_point.inc
mysql-test/include/galera_signal_sync_point.inc
+1
-0
mysql-test/include/galera_wait_sync_point.inc
mysql-test/include/galera_wait_sync_point.inc
+5
-0
mysql-test/suite/galera/r/galera_ftwrl_drain.result
mysql-test/suite/galera/r/galera_ftwrl_drain.result
+2
-0
mysql-test/suite/galera/r/galera_transaction_replay.result
mysql-test/suite/galera/r/galera_transaction_replay.result
+2
-0
mysql-test/suite/galera/t/galera_ftwrl_drain.test
mysql-test/suite/galera/t/galera_ftwrl_drain.test
+6
-5
mysql-test/suite/galera/t/galera_ist_restart_joiner.test
mysql-test/suite/galera/t/galera_ist_restart_joiner.test
+3
-1
mysql-test/suite/galera/t/galera_transaction_replay.test
mysql-test/suite/galera/t/galera_transaction_replay.test
+5
-5
mysql-test/suite/galera_3nodes/r/galera_ist_gcache_rollover.result
...t/suite/galera_3nodes/r/galera_ist_gcache_rollover.result
+1
-1
mysql-test/suite/galera_3nodes/t/galera_ist_gcache_rollover.test
...est/suite/galera_3nodes/t/galera_ist_gcache_rollover.test
+4
-3
No files found.
mysql-test/include/galera_clear_sync_point.inc
0 → 100644
View file @
d01328d7
SET
GLOBAL
wsrep_provider_options
=
'dbug='
;
mysql-test/include/galera_set_sync_point.inc
0 → 100644
View file @
d01328d7
--
eval
SET
GLOBAL
wsrep_provider_options
=
'dbug=d,$galera_sync_point'
mysql-test/include/galera_signal_sync_point.inc
0 → 100644
View file @
d01328d7
--
eval
SET
GLOBAL
wsrep_provider_options
=
'signal=$galera_sync_point'
mysql-test/include/galera_wait_sync_point.inc
0 → 100644
View file @
d01328d7
let
$wait_timeout
=
10
;
SET
SESSION
wsrep_on
=
0
;
--
let
$wait_condition
=
SELECT
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_debug_sync_waiters'
AND
VARIABLE_VALUE
=
'$galera_sync_point'
--
source
include
/
wait_condition
.
inc
SET
SESSION
wsrep_on
=
1
;
mysql-test/suite/galera/r/galera_ftwrl_drain.result
View file @
d01328d7
...
...
@@ -2,6 +2,8 @@ CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync';
INSERT INTO t1 VALUES (1);
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
SELECT COUNT(*) = 0 FROM t1;
COUNT(*) = 0
1
...
...
mysql-test/suite/galera/r/galera_transaction_replay.result
View file @
d01328d7
...
...
@@ -10,6 +10,8 @@ f1 f2
SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_enter_sync';
COMMIT;;
SET SESSION wsrep_sync_wait = 0;
SET SESSION wsrep_on = 0;
SET SESSION wsrep_on = 1;
UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_enter_sync';
...
...
mysql-test/suite/galera/t/galera_ftwrl_drain.test
View file @
d01328d7
...
...
@@ -18,7 +18,9 @@
CREATE
TABLE
t1
(
id
INT
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'dbug=d,apply_monitor_slave_enter_sync'
;
--
let
$galera_sync_point
=
apply_monitor_slave_enter_sync
--
source
include
/
galera_set_sync_point
.
inc
--
connection
node_1
INSERT
INTO
t1
VALUES
(
1
);
...
...
@@ -27,8 +29,7 @@ INSERT INTO t1 VALUES (1);
SET
SESSION
wsrep_sync_wait
=
0
;
# Wait until applier has blocked
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_debug_sync_waiters'
AND
VARIABLE_VALUE
=
'apply_monitor_slave_enter_sync'
--
source
include
/
wait_condition
.
inc
--
source
include
/
galera_wait_sync_point
.
inc
SELECT
COUNT
(
*
)
=
0
FROM
t1
;
...
...
@@ -41,8 +42,8 @@ SELECT COUNT(*) = 0 FROM t1;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'Init'
AND
INFO
=
'FLUSH TABLES WITH READ LOCK'
--
source
include
/
wait_condition
.
inc
SET
GLOBAL
wsrep_provider_options
=
'dbug='
;
SET
GLOBAL
wsrep_provider_options
=
'signal=apply_monitor_slave_enter_sync'
;
--
source
include
/
galera_clear_sync_point
.
inc
--
source
include
/
galera_signal_sync_point
.
inc
--
connection
node_2a
--
reap
...
...
mysql-test/suite/galera/t/galera_ist_restart_joiner.test
View file @
d01328d7
...
...
@@ -27,7 +27,9 @@ UPDATE t1 SET f2 = 'c' WHERE f1 > 2;
--
connection
node_2
# Make sure IST will block ...
SET
GLOBAL
wsrep_provider_options
=
'dbug=d,recv_IST_after_apply_trx'
;
--
let
$galera_sync_point
=
recv_IST_after_apply_trx
--
source
include
/
galera_set_sync_point
.
inc
SET
SESSION
wsrep_sync_wait
=
0
;
...
...
mysql-test/suite/galera/t/galera_transaction_replay.test
View file @
d01328d7
...
...
@@ -23,7 +23,8 @@ SELECT * FROM t1 WHERE f1 = 2 FOR UPDATE;
# Block the commit
--
connect
node_1a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
SET
GLOBAL
wsrep_provider_options
=
'dbug=d,commit_monitor_enter_sync'
;
--
let
$galera_sync_point
=
commit_monitor_enter_sync
--
source
include
/
galera_set_sync_point
.
inc
--
connection
node_1
--
send
COMMIT
;
...
...
@@ -31,8 +32,7 @@ SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_enter_sync';
# Wait until commit is blocked
--
connection
node_1a
SET
SESSION
wsrep_sync_wait
=
0
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_debug_sync_waiters'
AND
VARIABLE_VALUE
=
'commit_monitor_enter_sync'
--
source
include
/
wait_condition
.
inc
--
source
include
/
galera_wait_sync_point
.
inc
# Issue a conflicting update on node #2
--
connection
node_2
...
...
@@ -48,8 +48,8 @@ UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
# Unblock the commit
--
connection
node_1a
SET
GLOBAL
wsrep_provider_options
=
'dbug='
;
SET
GLOBAL
wsrep_provider_options
=
'signal=commit_monitor_enter_sync'
;
--
source
include
/
galera_clear_sync_point
.
inc
--
source
include
/
galera_signal_sync_point
.
inc
# Commit succeeds
--
connection
node_1
...
...
mysql-test/suite/galera_3nodes/r/galera_ist_gcache_rollover.result
View file @
d01328d7
...
...
@@ -16,8 +16,8 @@ CREATE TABLE t2 (f1 LONGTEXT);
INSERT INTO t2 VALUES (REPEAT('x', 512 * 1024));
INSERT INTO t2 VALUES (REPEAT('x', 512 * 1024));
INSERT INTO t2 VALUES (REPEAT('x', 512 * 1024));
SET GLOBAL wsrep_provider_options = 'signal=ist_sender_send_after_get_buffers';
SET GLOBAL wsrep_provider_options = 'dbug=';
SET GLOBAL wsrep_provider_options = 'signal=ist_sender_send_after_get_buffers';
INSERT INTO t1 VALUES (51), (52), (53), (54), (55);
SELECT COUNT(*) = 30 FROM t1;
COUNT(*) = 30
...
...
mysql-test/suite/galera_3nodes/t/galera_ist_gcache_rollover.test
View file @
d01328d7
...
...
@@ -38,7 +38,8 @@ INSERT INTO t1 VALUES (11), (12), (13), (14), (15);
INSERT
INTO
t1
VALUES
(
21
),
(
22
),
(
23
),
(
24
),
(
25
);
# Make sure IST will block ...
SET
GLOBAL
wsrep_provider_options
=
'dbug=d,ist_sender_send_after_get_buffers'
;
--
let
$galera_sync_point
=
ist_sender_send_after_get_buffers
--
source
include
/
galera_set_sync_point
.
inc
# ... and restart providers to force IST
--
connection
node_2
...
...
@@ -70,8 +71,8 @@ INSERT INTO t2 VALUES (REPEAT('x', 512 * 1024));
INSERT
INTO
t2
VALUES
(
REPEAT
(
'x'
,
512
*
1024
));
# Unlock IST and wait for it to complete
SET
GLOBAL
wsrep_provider_options
=
'signal=ist_sender_send_after_get_buffers'
;
SET
GLOBAL
wsrep_provider_options
=
'dbug='
;
--
source
include
/
galera_clear_sync_point
.
inc
--
source
include
/
galera_signal_sync_point
.
inc
INSERT
INTO
t1
VALUES
(
51
),
(
52
),
(
53
),
(
54
),
(
55
);
...
...
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