XTRABACKUP_PID in wsrep_sst_xtrabackup script does nothing

Bug #1086280 reported by Raghavendra D Prabhu
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Invalid
Undecided
Unassigned
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Invalid
Undecided
Unassigned

Bug Description

XTRABACKUP_PID in https://bazaar.launchpad.net/~percona-dev/percona-xtradb-cluster/5.5.28/view/head:/Percona-Server/scripts/wsrep_sst_xtrabackup.sh does nothing since Xtrabackup doesn't use that nor does innobackupex.

It needs to be removed as it serves no purpose and also cause
mktemp related bugs like lp:1080829

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Reported lp:1086286 to help in the other part of the bug fix (ie. to check if innobackupex is still running and kill it if so).

Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

Original wsrep_xtrabackup_sst had a cleanup procedure, see e.g.
http://bazaar.launchpad.net/~percona-core/percona-xtradb-cluster/5.5.27/view/head:/Percona-Server/scripts/wsrep_sst_xtrabackup.sh

kill_xtrabackup()
{
#set -x
    local PID=$(cat $XTRABACKUP_PID)
    [ -n "$PID" -a "0" != "$PID" ] && kill $PID && (kill $PID && kill -9 $PID) || :
    rm -f "$XTRABACKUP_PID"
#set +x
}

New script from codership-mysql does not have it.

However I believe that cleanup procedure is needed, to exit gracefully if calling binary dies.

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

this ticket is invalid, see lp:1080829

Changed in codership-mysql:
status: New → Invalid
Changed in percona-xtradb-cluster:
status: New → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1267

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.