Add logic to clean binlog directory in PXB SST

Bug #1273368 reported by Raghavendra D Prabhu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.5
Fix Released
Undecided
Unassigned
5.6
Fix Released
Undecided
Unassigned

Bug Description

When it is defined separately in log-bin to a non $DATA path.

Tags: i38756

Related branches

tags: added: i38756
Revision history for this message
Ryan Gordon (ryan-5) wrote :

I was looking at the fix here http://bazaar.launchpad.net/~percona-core/percona-xtradb-cluster/5.6/revision/697 and I'm concerned there could be a regression here. Not knowing any better our bin log directory shares with the /var/log/mysql directory so it looks like that command, during an SST would delete all of the logs and whatever else was in that directory as well. I'm thinking the delete should be more specific, maybe only delete files beginning with "bin." as the prefix

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

@Ryan,

When you are providing a separate directory for binlog, it is
always better to make it dedicated (and also since binlog is
unlike other 'logs' that are produced). In any case, I will make it that way.

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

Added the fix for cleaning with prefix.

Revision history for this message
Ryan Gordon (ryan-5) wrote :

Thanks Raghu! That's good advice as well, we will definitely look into changing the bin log directory

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-1597

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.