Add logic to clean binlog directory in PXB SST

Bug #1273368 reported by Raghavendra D Prabhu on 2014-01-27
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to
Status tracked in 5.6
Fix Released
Fix Released

Bug Description

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

Related branches

tags: added: i38756
Ryan Gordon (ryan-5) wrote :

I was looking at the fix here 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


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.

Added the fix for cleaning with prefix.

Ryan Gordon (ryan-5) wrote :

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

Percona now uses JIRA for bug reports so this bug report is migrated to:

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

Other bug subscribers