diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java index db868fdeba5..ca6e591aba1 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java @@ -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 {}",