log.error("rename is unsuccessful");
} else {
log.info("Deleting walog " + filename);
Trash trash = new Trash(fs, fs.getConf());
Path sourcePath = new Path(source);
if (!(!acuConf.getBoolean(Property.GC_TRASH_IGNORE) && trash.moveToTrash(sourcePath)) && !fs.delete(sourcePath, true))
log.warn("Failed to delete walog " + source);
Path recoveryPath = new Path(Constants.getRecoveryDir(acuConf), filename);
try {
if (trash.moveToTrash(recoveryPath) || fs.delete(recoveryPath, true))
log.info("Deleted any recovery log " + filename);