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
e8541c75
Commit
e8541c75
authored
Mar 05, 2019
by
Daniel Black
Committed by
Jan Lindström
Mar 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
galera: test cases for non [mysqld] section for configuration
parent
85a18526
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
191 additions
and
0 deletions
+191
-0
mysql-test/suite/galera_3nodes/r/galera_ipv6_rsync_section.result
...st/suite/galera_3nodes/r/galera_ipv6_rsync_section.result
+19
-0
mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.cnf
...suite/galera_3nodes/t/galera_ipv6_mariabackup_section.cnf
+39
-0
mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.opt
...suite/galera_3nodes/t/galera_ipv6_mariabackup_section.opt
+1
-0
mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.test
...uite/galera_3nodes/t/galera_ipv6_mariabackup_section.test
+68
-0
mysql-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.cnf
...-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.cnf
+31
-0
mysql-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.opt
...-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.opt
+1
-0
mysql-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.test
...test/suite/galera_3nodes/t/galera_ipv6_rsync_section.test
+32
-0
No files found.
mysql-test/suite/galera_3nodes/r/galera_ipv6_rsync_section.result
0 → 100644
View file @
e8541c75
connection node_2;
connection node_1;
SELECT VARIABLE_VALUE LIKE '%[::1]%' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_incoming_addresses';
VARIABLE_VALUE LIKE '%[::1]%'
1
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
VARIABLE_VALUE = 3
1
connection node_2;
SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
connection node_1;
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
connection node_2;
SET GLOBAL wsrep_provider_options='gmcast.isolate=0';
SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1
1
DROP TABLE t1;
mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.cnf
0 → 100644
View file @
e8541c75
!include ../galera_3nodes.cnf
# decoy value - should not be read by mysqld or sst scripts
[mysqld]
innodb-data-home-dir=/tmp
[galera]
innodb-data-home-dir=
wsrep_sst_method=mariabackup
wsrep_sst_auth="root:"
wsrep_node_address=::1
[galera.1]
wsrep-cluster-address=gcomm://
wsrep_provider_options='base_host=[::1];base_port=@mysqld.1.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.1.#galera_port;ist.recv_addr=[::1]:@mysqld.1.#ist_port'
wsrep_sst_receive_address='[::1]:@mysqld.1.#sst_port'
wsrep_node_incoming_address='[::1]:@mysqld.1.port'
wsrep_node_name=node_1
[galera.2]
wsrep_cluster_address='gcomm://[::1]:@mysqld.1.#galera_port'
wsrep_provider_options='base_host=[::1];base_port=@mysqld.2.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.2.#galera_port;ist.recv_addr=[::1]:@mysqld.2.#ist_port'
wsrep_sst_receive_address='[::1]:@mysqld.2.#sst_port'
wsrep_node_incoming_address='[::1]:@mysqld.2.port'
wsrep_node_name=node_2
wsrep_sst_donor=node_1
[galera.3]
wsrep_cluster_address='gcomm://[::1]:@mysqld.1.#galera_port'
wsrep_provider_options='base_host=[::1];base_port=@mysqld.3.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.3.#galera_port;ist.recv_addr=[::1]:@mysqld.3.#ist_port'
wsrep_sst_receive_address='[::1]:@mysqld.3.#sst_port'
wsrep_node_incoming_address='[::1]:@mysqld.3.port'
wsrep_node_name=node_3
wsrep_sst_donor=node_1
[SST]
transferfmt=@ENV.MTR_GALERA_TFMT
streamfmt=xbstream
sockopt=",pf=ip6"
mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.opt
0 → 100644
View file @
e8541c75
--bind-address=::
mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup_section.test
0 → 100644
View file @
e8541c75
--
source
include
/
galera_cluster
.
inc
--
source
include
/
check_ipv6
.
inc
--
source
suite
/
galera
/
include
/
have_mariabackup
.
inc
# Confirm that initial handshake happened over ipv6
SELECT
VARIABLE_VALUE
LIKE
'%[::1]%'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_incoming_addresses'
;
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
# Force IST
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=1'
;
--
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
CREATE
TABLE
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
);
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=0'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'ON'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_ready'
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
=
1
FROM
t1
;
DROP
TABLE
t1
;
# Confirm that key messages around SST and IST reference IPv6
--
connection
node_1
--
let
$assert_file
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
1.
err
--
let
$assert_only_after
=
CURRENT_TEST
# The SSTs happen when nodes are started first time
--
let
$assert_count
=
2
--
let
$assert_text
=
Streaming
the
backup
to
joiner
at
\
[
::
1
\
]
--
let
$assert_select
=
Streaming
the
backup
to
joiner
at
\
[
::
1
\
]
--
source
include
/
assert_grep
.
inc
# There will be 3 ISTs donated from node_1 in Galera 4.
# Two first happen at the initial startup to populate the certification
# index. The third one is from the IST which happens during the actual test.
--
let
$assert_count
=
3
--
let
$assert_text
=
async
IST
sender
starting
to
serve
tcp
://
\
[
::
1
\
]
:
--
let
$assert_select
=
async
IST
sender
starting
to
serve
tcp
://
\
[
::
1
\
]
:
--
source
include
/
assert_grep
.
inc
--
let
$assert_file
=
$MYSQLTEST_VARDIR
/
log
/
mysqld
.
2.
err
# There are two ISTs on joiner, the first at the initial startup, the second
# during the actual test.
--
let
$assert_count
=
2
--
let
$assert_text
=
IST
receiver
addr
using
tcp
://
\
[
::
1
\
]
--
let
$assert_select
=
IST
receiver
addr
using
tcp
://
\
[
::
1
\
]
--
source
include
/
assert_grep
.
inc
# The receiver expects seqnos 3-6 only once.
--
let
$assert_count
=
1
--
let
$assert_text
=
Prepared
IST
receiver
for
3
-
6
,
listening
at
:
tcp
://
\
[
::
1
\
]
--
let
$assert_select
=
Prepared
IST
receiver
for
3
-
6
,
listening
at
:
tcp
://
\
[
::
1
\
]
--
source
include
/
assert_grep
.
inc
mysql-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.cnf
0 → 100644
View file @
e8541c75
!include ../galera_3nodes.cnf
# decoy value - should not be read by mysqld or sst scripts
[mysqld]
innodb-data-home-dir=/tmp
[mariadb]
innodb-data-home-dir=
wsrep_sst_method=rsync
wsrep_node_address=::1
[mariadb.1]
wsrep-cluster-address=gcomm://
wsrep_provider_options='base_host=[::1];base_port=@mysqld.1.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.1.#galera_port;ist.recv_addr=[::1]:@mysqld.1.#ist_port'
wsrep_sst_receive_address='[::1]:@mysqld.1.#sst_port'
wsrep_node_incoming_address='[::1]:@mysqld.1.port'
[mariadb.2]
wsrep_cluster_address='gcomm://[::1]:@mysqld.1.#galera_port'
wsrep_provider_options='base_host=[::1];base_port=@mysqld.2.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.2.#galera_port;ist.recv_addr=[::1]:@mysqld.2.#ist_port'
wsrep_sst_receive_address='[::1]:@mysqld.2.#sst_port'
wsrep_node_incoming_address='[::1]:@mysqld.2.port'
[mariadb.3]
wsrep_cluster_address='gcomm://[::1]:@mysqld.1.#galera_port'
wsrep_provider_options='base_host=[::1];base_port=@mysqld.3.#galera_port;gmcast.listen_addr=tcp://[::]:@mysqld.3.#galera_port;ist.recv_addr=[::1]:@mysqld.3.#ist_port'
wsrep_sst_receive_address='[::1]:@mysqld.3.#sst_port'
wsrep_node_incoming_address='[::1]:@mysqld.3.port'
[SST]
sockopt=",pf=ip6"
mysql-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.opt
0 → 100644
View file @
e8541c75
--bind-address=::
mysql-test/suite/galera_3nodes/t/galera_ipv6_rsync_section.test
0 → 100644
View file @
e8541c75
--
source
include
/
galera_cluster
.
inc
--
source
include
/
check_ipv6
.
inc
# Confirm that initial handshake happened over ipv6
SELECT
VARIABLE_VALUE
LIKE
'%[::1]%'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_incoming_addresses'
;
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
# Force IST
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=1'
;
--
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
CREATE
TABLE
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
1
);
--
connection
node_2
SET
GLOBAL
wsrep_provider_options
=
'gmcast.isolate=0'
;
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
'ON'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_ready'
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
=
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