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
b3e43eee
Commit
b3e43eee
authored
Aug 27, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove xtrabackup and innobackupex test cases.
parent
21a96581
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
211 deletions
+0
-211
mysql-test/suite/galera_3nodes/r/galera_innobackupex_backup.result
...t/suite/galera_3nodes/r/galera_innobackupex_backup.result
+0
-17
mysql-test/suite/galera_3nodes/r/galera_ipv6_xtrabackup-v2.result
...st/suite/galera_3nodes/r/galera_ipv6_xtrabackup-v2.result
+0
-22
mysql-test/suite/galera_3nodes/t/galera_innobackupex_backup.cnf
...test/suite/galera_3nodes/t/galera_innobackupex_backup.cnf
+0
-4
mysql-test/suite/galera_3nodes/t/galera_innobackupex_backup.test
...est/suite/galera_3nodes/t/galera_innobackupex_backup.test
+0
-80
mysql-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.cnf
...-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.cnf
+0
-29
mysql-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.opt
...-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.opt
+0
-1
mysql-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.test
...test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.test
+0
-58
No files found.
mysql-test/suite/galera_3nodes/r/galera_innobackupex_backup.result
deleted
100644 → 0
View file @
21a96581
connection node_1;
connection node_2;
connection node_3;
connection node_1;
CREATE TABLE t1 (f1 INTEGER);
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
connection node_2;
SELECT COUNT(*) = 10 FROM t1;
COUNT(*) = 10
1
Killing server ...
connection node_1;
INSERT INTO t1 VALUES (11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
SELECT COUNT(*) = 20 FROM t1;
COUNT(*) = 20
1
DROP TABLE t1;
mysql-test/suite/galera_3nodes/r/galera_ipv6_xtrabackup-v2.result
deleted
100644 → 0
View file @
21a96581
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;
connection node_1;
include/assert_grep.inc [Streaming the backup to joiner at \[::1\]]
include/assert_grep.inc [async IST sender starting to serve tcp://\[::1\]:]
include/assert_grep.inc [IST receiver addr using tcp://\[::1\]]
include/assert_grep.inc [Prepared IST receiver, listening at: tcp://\[::1\]]
mysql-test/suite/galera_3nodes/t/galera_innobackupex_backup.cnf
deleted
100644 → 0
View file @
21a96581
!include ../galera_3nodes.cnf
[mysqld]
wsrep-causal-reads=OFF
mysql-test/suite/galera_3nodes/t/galera_innobackupex_backup.test
deleted
100644 → 0
View file @
21a96581
#
# This test uses innobackupex to take a backup on node #2 and then restores that node from backup
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_mariabackup
.
inc
--
let
$galera_connection_name
=
node_3
--
let
$galera_server_number
=
3
--
source
include
/
galera_connect
.
inc
# Save original auto_increment_offset values.
--
let
$node_1
=
node_1
--
let
$node_2
=
node_2
--
let
$node_3
=
node_3
--
source
../
galera
/
include
/
auto_increment_offset_save
.
inc
--
connection
node_1
CREATE
TABLE
t1
(
f1
INTEGER
);
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
--
connection
node_2
SELECT
COUNT
(
*
)
=
10
FROM
t1
;
--
exec
rm
-
rf
$MYSQL_TMP_DIR
/
innobackupex_backup
--
exec
mariabackup
--
innobackupex
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
defaults
-
group
=
mysqld
.
2
--
galera
-
info
--
port
=
$NODE_MYPORT_2
--
host
=
127.0
.
0.1
--
no
-
timestamp
$MYSQL_TMP_DIR
/
innobackupex_backup
&>
$MYSQL_TMP_DIR
/
innobackupex
-
backup
.
log
--
exec
mariabackup
--
innobackupex
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
defaults
-
group
=
mysqld
.
2
--
apply
-
log
--
galera
-
info
--
port
=
$NODE_MYPORT_2
--
host
=
127.0
.
0.1
--
no
-
timestamp
$MYSQL_TMP_DIR
/
innobackupex_backup
&>
$MYSQL_TMP_DIR
/
innobackupex
-
apply
.
log
--
source
../
galera
/
include
/
kill_galera
.
inc
--
sleep
1
--
connection
node_1
INSERT
INTO
t1
VALUES
(
11
),(
12
),(
13
),(
14
),(
15
),(
16
),(
17
),(
18
),(
19
),(
20
);
--
exec
rm
-
rf
$MYSQLTEST_VARDIR
/
mysqld
.
2
/
data
/*
--
exec
mariabackup
--
innobackupex
--
defaults
-
file
=
$MYSQLTEST_VARDIR
/
my
.
cnf
--
defaults
-
group
=
mysqld
.
2
--
copy
-
back
--
port
=
$NODE_MYPORT_2
--
host
=
127.0
.
0.1
$MYSQL_TMP_DIR
/
innobackupex_backup
&>
$MYSQL_TMP_DIR
/
innobackupex
-
restore
.
log
#
# Convert the xtrabackup_galera_info into a grastate.dat file
#
--
perl
use
strict
;
my
$xtrabackup_galera_info_file
=
$ENV
{
'MYSQL_TMP_DIR'
}
.
'/innobackupex_backup/xtrabackup_galera_info'
;
open
(
XTRABACKUP_GALERA_INFO
,
$xtrabackup_galera_info_file
)
or
die
"Can not open
$xtrabackup_galera_info_file
: $!"
;
my
$xtrabackup_galera_info
=
<
XTRABACKUP_GALERA_INFO
>
;
my
(
$uuid
,
$seqno
)
=
split
(
':'
,
$xtrabackup_galera_info
);
my
$grastate_dat_file
=
$ENV
{
'MYSQLTEST_VARDIR'
}
.
'/mysqld.2/data/grastate.dat'
;
die
"grastate.dat already exists"
if
-
e
$grastate_dat_file
;
open
(
GRASTATE_DAT
,
">
$grastate_dat_file
"
)
or
die
"Can not write to
$grastate_dat_file
: $!"
;
print
GRASTATE_DAT
"version: 2.1
\n
"
;
print
GRASTATE_DAT
"uuid:
$uuid
\n
"
;
print
GRASTATE_DAT
"seqno:
$seqno
\n
"
;
print
GRASTATE_DAT
"cert_index:
\n
"
;
exit
(
0
);
EOF
--
source
include
/
start_mysqld
.
inc
--
sleep
5
--
source
include
/
wait_until_connected_again
.
inc
--
let
$wait_condition
=
SELECT
VARIABLE_VALUE
=
3
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
source
include
/
wait_condition
.
inc
SELECT
COUNT
(
*
)
=
20
FROM
t1
;
DROP
TABLE
t1
;
--
sleep
10
--
let
$galera_connection_name
=
node_2a
--
let
$galera_server_number
=
2
--
source
include
/
galera_connect
.
inc
--
let
$node_2
=
node_2a
# Restore original auto_increment_offset values.
--
source
../
galera
/
include
/
auto_increment_offset_restore
.
inc
mysql-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.cnf
deleted
100644 → 0
View file @
21a96581
!include ../galera_3nodes.cnf
[mysqld]
wsrep_sst_method=xtrabackup-v2
wsrep_sst_auth="root:"
wsrep_node_address=::1
[mysqld.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'
[mysqld.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'
[mysqld.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]
transferfmt=@ENV.MTR_GALERA_TFMT
streamfmt=xbstream
sockopt=",pf=ip6"
mysql-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.opt
deleted
100644 → 0
View file @
21a96581
--bind-address=:: --skip-innodb-safe-truncate
mysql-test/suite/galera_3nodes/t/galera_ipv6_xtrabackup-v2.test
deleted
100644 → 0
View file @
21a96581
--
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
;
# 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
--
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
--
let
$assert_count
=
1
--
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
--
let
$assert_text
=
IST
receiver
addr
using
tcp
://
\
[
::
1
\
]
--
let
$assert_select
=
IST
receiver
addr
using
tcp
://
\
[
::
1
\
]
--
source
include
/
assert_grep
.
inc
--
let
$assert_text
=
Prepared
IST
receiver
,
listening
at
:
tcp
://
\
[
::
1
\
]
--
let
$assert_select
=
Prepared
IST
receiver
,
listening
at
:
tcp
://
\
[
::
1
\
]
--
source
include
/
assert_grep
.
inc
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