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
90642637
Commit
90642637
authored
Mar 03, 2017
by
Philip Stoev
Committed by
Jan Lindström
Aug 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: Test for GAL-491: Progress output for IST
parent
5fb12603
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
0 deletions
+98
-0
mysql-test/suite/galera/r/galera_ist_progress.result
mysql-test/suite/galera/r/galera_ist_progress.result
+19
-0
mysql-test/suite/galera/t/galera_ist_progress.cnf
mysql-test/suite/galera/t/galera_ist_progress.cnf
+5
-0
mysql-test/suite/galera/t/galera_ist_progress.test
mysql-test/suite/galera/t/galera_ist_progress.test
+74
-0
No files found.
mysql-test/suite/galera/r/galera_ist_progress.result
0 → 100644
View file @
90642637
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 1';
SET SESSION wsrep_on = OFF;
SET SESSION wsrep_on = ON;
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (2);
INSERT INTO t1 VALUES (3);
INSERT INTO t1 VALUES (4);
INSERT INTO t1 VALUES (5);
INSERT INTO t1 VALUES (6);
INSERT INTO t1 VALUES (7);
INSERT INTO t1 VALUES (8);
INSERT INTO t1 VALUES (9);
INSERT INTO t1 VALUES (10);
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 0';
include/assert_grep.inc [Receiving IST: 11 writesets, seqnos]
include/assert_grep.inc [Receiving IST\.\.\. 0\.0% \( 0/11 events\) complete]
include/assert_grep.inc [Receiving IST\.\.\.100\.0% \(11/11 events\) complete]
DROP TABLE t1;
mysql-test/suite/galera/t/galera_ist_progress.cnf
0 → 100644
View file @
90642637
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep_provider_options='base_port=@mysqld.1.#galera_port;pc.ignore_sb=true'
mysql-test/suite/galera/t/galera_ist_progress.test
0 → 100644
View file @
90642637
#
# Test progress output during IST
#
--
source
include
/
galera_cluster
.
inc
# Isolate node #2
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate = 1'
;
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
connection
node_2
SET
SESSION
wsrep_on
=
OFF
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'non-Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
SET
SESSION
wsrep_on
=
ON
;
# Node #2 is now isolated. Run some transactions to accumulate writesets for IST
--
connection
node_1
CREATE
TABLE
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
);
INSERT
INTO
t1
VALUES
(
2
);
INSERT
INTO
t1
VALUES
(
3
);
INSERT
INTO
t1
VALUES
(
4
);
INSERT
INTO
t1
VALUES
(
5
);
INSERT
INTO
t1
VALUES
(
6
);
INSERT
INTO
t1
VALUES
(
7
);
INSERT
INTO
t1
VALUES
(
8
);
INSERT
INTO
t1
VALUES
(
9
);
INSERT
INTO
t1
VALUES
(
10
);
# Restore node #2, IST is performed
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate = 0'
;
--
connection
node_1
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
connection
node_2
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'Primary'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_status'
;
--
source
include
/
wait_condition
.
inc
#
# Grep for expected IST output in joiner log
#
--
connection
node_1
--
let
$assert_count
=
1
--
let
$assert_file
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
2.
err
--
let
$assert_only_after
=
Need
state
transfer
--
let
$assert_text
=
Receiving
IST
:
11
writesets
,
seqnos
--
let
$assert_select
=
Receiving
IST
:
11
writesets
,
seqnos
--
source
include
/
assert_grep
.
inc
--
let
$assert_text
=
Receiving
IST
\
.
\
.
\
.
0
\
.
0
%
\
(
0
/
11
events
\
)
complete
--
let
$assert_select
=
Receiving
IST
\
.
\
.
\
.
0
\
.
0
%
\
(
0
/
11
events
\
)
complete
--
source
include
/
assert_grep
.
inc
--
let
$assert_text
=
Receiving
IST
\
.
\
.
\
.
100
\
.
0
%
\
(
11
/
11
events
\
)
complete
--
let
$assert_select
=
Receiving
IST
\
.
\
.
\
.
100
\
.
0
%
\
(
11
/
11
events
\
)
complete
--
source
include
/
assert_grep
.
inc
# Cleanup
--
connection
node_1
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