1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

MDEV-39483 : Hang on mariabackup SST

This regression was caused by commit 794b1d0ec5
Binlog-in-engine: New binlog implementation integrated in InnoDB.
Mariabackup request BACKUP STAGE BLOCK_COMMIT MDL-lock
using m_bs_con connection. Because we have wsrep,
write_galera_info is called using mysql_connection.
Note that m_bs_con and mysql_connection are different
connections. In write_galera_info write_current_binlog_file
is called and FLUSH BINLOG LOGS is executed. In reload_acl_and_cache
MDL_BACKUP_START MDL-lock is requested. Because we already
have conflicting MDL-lock for BLOCK_COMMIT in different THD
it has to wait. This wait ends on timeout and backup fails
causing mariabackup SST to fail and node will not join the cluster.

Fixed by using same connection for write_galera_info as for
BACKUP STAGE BLOCK_COMMIT i.e. m_bs_con.
This commit is contained in:
Jan Lindström
2026-04-16 10:27:07 +03:00
committed by Jan Lindström
parent cce49ef227
commit f6c02899fe

View File

@@ -5412,7 +5412,7 @@ class BackupStages {
xtrabackup. */
if (opt_galera_info) {
if (!write_galera_info(backup_datasinks.m_data,
mysql_connection)) {
m_bs_con)) {
return(false);
}
}