HBASE-5547 Don't delete HFiles when in "backup mode", addendum fixes check for fs.delete()
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1366510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57afee6a6b
commit
c8b6b7ad22
|
@ -218,7 +218,7 @@ public abstract class CleanerChore<T extends FileCleanerDelegate> extends Chore
|
||||||
}
|
}
|
||||||
// delete this file if it passes all the cleaners
|
// delete this file if it passes all the cleaners
|
||||||
LOG.debug("Removing:" + filePath + " from archive");
|
LOG.debug("Removing:" + filePath + " from archive");
|
||||||
if (this.fs.delete(filePath, false)) {
|
if (!this.fs.delete(filePath, false)) {
|
||||||
LOG.warn("Attempted to delete:" + filePath
|
LOG.warn("Attempted to delete:" + filePath
|
||||||
+ ", but couldn't. Run cleaner chain and attempt to delete on next pass.");
|
+ ", but couldn't. Run cleaner chain and attempt to delete on next pass.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue