Skip to content

Commit

Permalink
MDEV-9884: Existing /var/lib/mysql/.sst directory (with contents) cau…
Browse files Browse the repository at this point in the history
…ses SST to fail with xtrabackup-v2

[Fix taken from https://github.com/percona/percona-xtradb-
cluster/commit/b3ee75949ed82b88f355ca2e26431350cc1c89ac]

During SST, the receiver node creates .sst directory under
datadir to process/prepare the received data and removes it
at the end of the process. In case of error, this directory,
however, was not removed, which later caused subsequent SSTs
to fail. Fixed by removing this directory at the beginning
of SST if it existed.
  • Loading branch information
Nirbhay Choubey committed Apr 27, 2016
1 parent 43e19b3 commit 51a32eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/wsrep_sst_xtrabackup-v2.sh
Expand Up @@ -853,7 +853,8 @@ then
then

if [[ -d ${DATA}/.sst ]];then
wsrep_log_info "WARNING: Stale temporary SST directory: ${DATA}/.sst from previous state transfer"
wsrep_log_info "WARNING: Stale temporary SST directory: ${DATA}/.sst from previous state transfer. Removing"
rm -rf ${DATA}/.sst
fi
mkdir -p ${DATA}/.sst
(recv_joiner $DATA/.sst "${stagemsg}-SST" 0 0) &
Expand Down

0 comments on commit 51a32eb

Please sign in to comment.