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
a00f4b29
Commit
a00f4b29
authored
Mar 15, 2016
by
Philip Stoev
Committed by
Nirbhay Choubey
Aug 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refs codership/galera#105 An MTR test for ist.recv_bind
parent
b758e923
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
0 deletions
+74
-0
mysql-test/suite/galera/r/galera_ist_recv_bind.result
mysql-test/suite/galera/r/galera_ist_recv_bind.result
+13
-0
mysql-test/suite/galera/t/galera_ist_recv_bind.cnf
mysql-test/suite/galera/t/galera_ist_recv_bind.cnf
+8
-0
mysql-test/suite/galera/t/galera_ist_recv_bind.test
mysql-test/suite/galera/t/galera_ist_recv_bind.test
+53
-0
No files found.
mysql-test/suite/galera/r/galera_ist_recv_bind.result
0 → 100644
View file @
a00f4b29
SELECT @@wsrep_provider_options LIKE '%ist.recv_bind = 127.0.0.1%';
@@wsrep_provider_options LIKE '%ist.recv_bind = 127.0.0.1%'
1
SELECT @@wsrep_provider_options LIKE '%ist.recv_bind = 127.0.0.1%';
@@wsrep_provider_options LIKE '%ist.recv_bind = 127.0.0.1%'
1
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);
SET GLOBAL wsrep_provider_options = 'gmcast.isolate = 0';
DROP TABLE t1;
mysql-test/suite/galera/t/galera_ist_recv_bind.cnf
0 → 100644
View file @
a00f4b29
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep_provider_options='base_port=@mysqld.1.#galera_port;ist.recv_bind=127.0.0.1;pc.ignore_sb=true'
[mysqld.2]
wsrep_provider_options='base_port=@mysqld.2.#galera_port;ist.recv_bind=127.0.0.1'
mysql-test/suite/galera/t/galera_ist_recv_bind.test
0 → 100644
View file @
a00f4b29
#
# Test ist.recv_bind option. Since MTR can not do proper testing with multiple interfaces and such, we
# simply confirm that the option can be set (in the galera_ist_recv_bind.cnf file) and that IST works as expected
#
--
source
include
/
galera_cluster
.
inc
--
connection
node_1
SELECT
@@
wsrep_provider_options
LIKE
'%ist.recv_bind = 127.0.0.1%'
;
--
connection
node_2
SELECT
@@
wsrep_provider_options
LIKE
'%ist.recv_bind = 127.0.0.1%'
;
# Isolate 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
);
# Restore node #2
--
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
# Confirm that IST has taken place
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
--
source
include
/
wait_condition
.
inc
# Cleanup
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