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
4197d238
Commit
4197d238
authored
Sep 25, 2024
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 11.2 into 11.4
parents
7ea9e135
f1b4d36c
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
76 additions
and
24 deletions
+76
-24
mysql-test/main/log_slow.test
mysql-test/main/log_slow.test
+1
-1
mysql-test/suite/galera/t/MW-329.test
mysql-test/suite/galera/t/MW-329.test
+1
-1
mysql-test/suite/galera/t/galera_as_slave.test
mysql-test/suite/galera/t/galera_as_slave.test
+0
-1
mysql-test/suite/galera/t/galera_backup_stage.test
mysql-test/suite/galera/t/galera_backup_stage.test
+1
-1
mysql-test/suite/galera/t/galera_bf_kill_debug.test
mysql-test/suite/galera/t/galera_bf_kill_debug.test
+1
-1
mysql-test/suite/galera/t/galera_parallel_simple.test
mysql-test/suite/galera/t/galera_parallel_simple.test
+1
-1
mysql-test/suite/galera/t/galera_sst_mariabackup.cnf
mysql-test/suite/galera/t/galera_sst_mariabackup.cnf
+1
-1
mysql-test/suite/galera/t/galera_var_reject_queries.test
mysql-test/suite/galera/t/galera_var_reject_queries.test
+1
-5
mysql-test/suite/galera/t/rpl_galera_to_mariadb_clone_slave_using_mariadb-backup.cnf
...pl_galera_to_mariadb_clone_slave_using_mariadb-backup.cnf
+3
-3
mysql-test/suite/galera_sr/r/galera_sr_cc_master.result
mysql-test/suite/galera_sr/r/galera_sr_cc_master.result
+1
-1
mysql-test/suite/galera_sr/t/galera_sr_cc_master.test
mysql-test/suite/galera_sr/t/galera_sr_cc_master.test
+1
-5
scripts/wsrep_sst_mariabackup.sh
scripts/wsrep_sst_mariabackup.sh
+64
-3
No files found.
mysql-test/main/log_slow.test
View file @
4197d238
...
...
@@ -214,7 +214,7 @@ set log_slow_filter=default;
set timestamp=default;
let SEARCH_FILE=`
select
@@
slow_query_log_file
`
;
let
SEARCH_PATTERN
=
use
.*
2
;
let
SEARCH_PATTERN
=
use
\`
a\n
.*
2
;
let
SEARCH_OUTPUT
=
matches
;
source
include
/
search_pattern_in_file
.
inc
;
...
...
mysql-test/suite/galera/t/MW-329.test
View file @
4197d238
...
...
@@ -87,7 +87,7 @@ while ($count)
--
enable_query_log
--
connection
node_1b
--
error
0
,
2013
,
1317
,
2026
--
error
0
,
1317
,
2013
,
2026
--
reap
--
enable_query_log
--
enable_result_log
...
...
mysql-test/suite/galera/t/galera_as_slave.test
View file @
4197d238
...
...
@@ -55,7 +55,6 @@ INSERT INTO t1 VALUES (4,1);
--
connection
node_3
DROP
TABLE
t1
;
--
connection
node_2
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
0
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
;
--
source
include
/
wait_condition
.
inc
...
...
mysql-test/suite/galera/t/galera_backup_stage.test
View file @
4197d238
mysql-test/suite/galera/t/galera_bf_kill_debug.test
View file @
4197d238
...
...
@@ -131,7 +131,7 @@ SET DEBUG_SYNC = "now WAIT_FOR bwoc_reached";
SET
DEBUG_SYNC
=
"now SIGNAL bwoc_continue"
;
SET
DEBUG_SYNC
=
'RESET'
;
--
connection
node_2a
--
error
0
,
1213
--
error
0
,
1213
,
2013
,
2026
--
reap
--
connection
node_2
...
...
mysql-test/suite/galera/t/galera_parallel_simple.test
View file @
4197d238
...
...
@@ -51,7 +51,7 @@ SET SESSION wsrep_sync_wait = 0;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'Waiting for table metadata lock%'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'Commit'
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
(
STATE
LIKE
'Commit'
or
STATE
=
'Waiting for certification'
)
;
--
source
include
/
wait_condition
.
inc
UNLOCK
TABLES
;
...
...
mysql-test/suite/galera/t/galera_sst_mariabackup.cnf
View file @
4197d238
...
...
@@ -14,7 +14,7 @@ innodb_undo_tablespaces=0
wsrep_provider_options='base_port=@mysqld.2.#galera_port;gcache.size=1;pc.ignore_sb=true'
innodb_fast_shutdown=0
innodb_undo_tablespaces=3
innodb_log_file_buffering
loose_
innodb_log_file_buffering
[sst]
transferfmt=@ENV.MTR_GALERA_TFMT
...
...
mysql-test/suite/galera/t/galera_var_reject_queries.test
View file @
4197d238
...
...
@@ -5,10 +5,6 @@
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
if
(
`select version() not like '10.10.3-%'`
)
{
skip
disabled
until
new
C
/
C
;
}
CREATE
TABLE
t1
(
f1
INTEGER
NOT
NULL
PRIMARY
KEY
)
engine
=
innodb
;
--
connect
node_1a
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_1
...
...
@@ -26,7 +22,7 @@ SELECT * FROM t1;
# Original behavior was lost connection,
# but since 10.1, we allow controlling connection to remain alive
#
--
error
0
,
2013
--
error
0
,
2013
,
2026
SET
GLOBAL
wsrep_reject_queries
=
ALL_KILL
;
--
connection
node_1a
...
...
mysql-test/suite/galera/t/rpl_galera_to_mariadb_clone_slave_using_mariadb-backup.cnf
View file @
4197d238
!include ../galera_2nodes_as_master.cnf
[mysqld.1]
innodb-log-file-buffering
loose-
innodb-log-file-buffering
[mysqld.2]
innodb-log-file-buffering
loose-
innodb-log-file-buffering
[mysqld.3]
innodb-log-file-buffering
loose-
innodb-log-file-buffering
mysql-test/suite/galera_sr/r/galera_sr_cc_master.result
View file @
4197d238
...
...
@@ -27,7 +27,7 @@ SET GLOBAL wsrep_cluster_address = '';
SET SESSION wsrep_sync_wait = DEFAULT;
connection node_2;
INSERT INTO t1 VALUES (6);
ERROR HY000: Lost connection to server during query
Got one of the listed errors
connection node_1;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
EXPECT_0
...
...
mysql-test/suite/galera_sr/t/galera_sr_cc_master.test
View file @
4197d238
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
if
(
`select version() not like '10.10.3-%'`
)
{
skip
disabled
until
new
C
/
C
;
}
#
# Test the effect of Cluster Configuration Change on a concurrently-running SR transaction
# We use SET GLOBAL wsrep_cluster_address = '' to cause the master (node_2) to temporarily
...
...
@@ -55,7 +51,7 @@ SET GLOBAL wsrep_cluster_address = '';
SET
SESSION
wsrep_sync_wait
=
DEFAULT
;
--
connection
node_2
--
error
2013
# CR_SERVER_LOST
--
error
2013
,
2026
INSERT
INTO
t1
VALUES
(
6
);
--
connection
node_1
...
...
scripts/wsrep_sst_mariabackup.sh
View file @
4197d238
...
...
@@ -843,7 +843,13 @@ recv_joiner()
done
if
[
$checkf
-eq
1
]
;
then
if
[
!
-r
"
$MAGIC_FILE
"
]
;
then
if
[
-r
"
$MAGIC_FILE
"
]
;
then
:
elif
[
-r
"
$dir
/xtrabackup_galera_info"
]
;
then
mv
"
$dir
/xtrabackup_galera_info"
"
$MAGIC_FILE
"
wsrep_log_info
"the SST donor uses an old version"
\
"of mariabackup or xtrabackup"
else
# this message should cause joiner to abort:
wsrep_log_error
"receiving process ended without creating"
\
"magic file (
$MAGIC_FILE
)"
...
...
@@ -1334,15 +1340,22 @@ else # joiner
"
$DATA
"
-mindepth
1
-prune
-regex
"
$cpat
"
\
-o
-exec
rm
-rf
{}
>
&2
\+
# Deleting
files from previous SST and
legacy files from old versions:
# Deleting legacy files from old versions:
[
-f
"
$DATA
/xtrabackup_binary"
]
&&
rm
-f
"
$DATA
/xtrabackup_binary"
[
-f
"
$DATA
/xtrabackup_pid"
]
&&
rm
-f
"
$DATA
/xtrabackup_pid"
[
-f
"
$DATA
/xtrabackup_checkpoints"
]
&&
rm
-f
"
$DATA
/xtrabackup_checkpoints"
[
-f
"
$DATA
/mariadb_backup_checkpoints"
]
&&
rm
-f
"
$DATA
/mariadb_backup_checkpoints"
[
-f
"
$DATA
/xtrabackup_info"
]
&&
rm
-f
"
$DATA
/xtrabackup_info"
[
-f
"
$DATA
/xtrabackup_slave_info"
]
&&
rm
-f
"
$DATA
/xtrabackup_slave_info"
[
-f
"
$DATA
/xtrabackup_binlog_info"
]
&&
rm
-f
"
$DATA
/xtrabackup_binlog_info"
[
-f
"
$DATA
/xtrabackup_binlog_pos_innodb"
]
&&
rm
-f
"
$DATA
/xtrabackup_binlog_pos_innodb"
# Deleting files from previous SST:
[
-f
"
$DATA
/mariadb_backup_checkpoints"
]
&&
rm
-f
"
$DATA
/mariadb_backup_checkpoints"
[
-f
"
$DATA
/mariadb_backup_info"
]
&&
rm
-f
"
$DATA
/mariadb_backup_info"
[
-f
"
$DATA
/mariadb_backup_slave_info"
]
&&
rm
-f
"
$DATA
/mariadb_backup_slave_info"
[
-f
"
$DATA
/mariadb_backup_binlog_info"
]
&&
rm
-f
"
$DATA
/mariadb_backup_binlog_info"
[
-f
"
$DATA
/mariadb_backup_binlog_pos_innodb"
]
&&
rm
-f
"
$DATA
/mariadb_backup_binlog_pos_innodb"
TDATA
=
"
$DATA
"
DATA
=
"
$DATA
/.sst"
MAGIC_FILE
=
"
$DATA
/
$INFO_FILE
"
...
...
@@ -1351,6 +1364,44 @@ else # joiner
monitor_process
$BACKUP_PID
BACKUP_PID
=
""
# It is possible that the old version of the galera
# information file will be transferred second time:
if
[
!
-f
"
$DATA
/
$INFO_FILE
"
-a
\
-f
"
$DATA
/xtrabackup_galera_info"
]
then
mv
"
$DATA
/xtrabackup_galera_info"
"
$DATA
/
$INFO_FILE
"
fi
# Correcting the name of the common information file
# if the donor has an old version:
if
[
!
-f
"
$DATA
/mariadb_backup_info"
-a
\
-f
"
$DATA
/xtrabackup_info"
]
then
mv
"
$DATA
/xtrabackup_info"
"
$DATA
/mariadb_backup_info"
wsrep_log_info
"general information file with a legacy"
\
"name has been renamed"
fi
# Correcting the name for the file with the binlog position
# for the master if the donor has an old version:
if
[
!
-f
"
$DATA
/mariadb_backup_slave_info"
-a
\
-f
"
$DATA
/xtrabackup_slave_info"
]
then
mv
"
$DATA
/xtrabackup_slave_info"
"
$DATA
/mariadb_backup_slave_info"
wsrep_log_info
"binlog position file with a legacy"
\
"name has been renamed"
fi
# An old version of the donor may send a checkpoints
# list file under an outdated name:
if
[
!
-f
"
$DATA
/mariadb_backup_checkpoints"
-a
\
-f
"
$DATA
/xtrabackup_checkpoints"
]
then
mv
"
$DATA
/xtrabackup_checkpoints"
"
$DATA
/mariadb_backup_checkpoints"
wsrep_log_info
"list of checkpoints with a legacy"
\
"name has been renamed"
fi
if
[
!
-s
"
$DATA
/mariadb_backup_checkpoints"
]
;
then
wsrep_log_error
"mariadb_backup_checkpoints missing,"
\
"failed mariadb-backup/SST on donor"
...
...
@@ -1410,6 +1461,16 @@ else # joiner
fi
fi
# An old version of the donor may send a binary logs
# list file under an outdated name:
if
[
!
-f
"
$DATA
/mariadb_backup_binlog_info"
-a
\
-f
"
$DATA
/xtrabackup_binlog_info"
]
then
mv
"
$DATA
/xtrabackup_binlog_info"
"
$DATA
/mariadb_backup_binlog_info"
wsrep_log_info
"list of binary logs with a legacy"
\
"name has been renamed"
fi
wsrep_log_info
"Preparing the backup at
$DATA
"
setup_commands
timeit
'mariadb-backup prepare stage'
"
$INNOAPPLY
"
...
...
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