You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2021/09/01 08:59:22 UTC
[GitHub] [hbase] sunhelly commented on a change in pull request #3646: HBASE-26229 Make L0 files compaction in StripeCompactionPolicy faster…
sunhelly commented on a change in pull request #3646:
URL: https://github.com/apache/hbase/pull/3646#discussion_r700020380
##########
File path: hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/ExploringCompactionPolicy.java
##########
@@ -120,10 +119,26 @@ public ExploringCompactionPolicy(final Configuration conf,
}
LOG.debug("Exploring compaction algorithm has selected {} files of size {} starting at " +
"candidate #{} after considering {} permutations with {} in ratio", bestSelection.size(),
- bestSize, bestSize, opts, optsInRatio);
+ bestSize, bestStart, opts, optsInRatio);
return new ArrayList<>(bestSelection);
}
+ /**
+ * Force select files in the candidates list to compact, from the head to
+ * the index that the accumulation length larger the max compaction size
+ */
+ public List<HStoreFile> forceSelectCompactFiles(final List<HStoreFile> candidates, int maxFiles,
Review comment:
This method is a supplementary of the selectSimpleCompaction() method, aims to make sure at least one file can be selected to compact, for compactions like L0 files, which need to compact as soon as possible.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org