HBASE-20935 HStore.removeCompactedFiles should log in case it is unable to delete a file (Vishal Khandelwal)

This commit is contained in:
Andrew Purtell 2018-07-31 15:58:05 -07:00
parent 7be97980f5
commit 5a1e02b6dc
1 changed files with 5 additions and 0 deletions

View File

@ -2605,6 +2605,11 @@ public class HStore implements Store, HeapSize, StoreConfigInformation, Propagat
filesToRemove.add(file);
// Only add the length if we successfully added the file to `filesToRemove`
storeFileSizes.add(length);
} else {
LOG.info("Can't archive compacted file " + file.getPath()
+ " because of either isCompactedAway = " + file.isCompactedAway()
+ " or file has reference, isReferencedInReads = " + file.isReferencedInReads()
+ ", skipping for now.");
}
} catch (Exception e) {
LOG.error("Exception while trying to close the compacted store file {}",