dlmarion commented on code in PR #5026:
URL: https://github.com/apache/accumulo/pull/5026#discussion_r1824625981
##########
core/src/main/java/org/apache/accumulo/core/util/compaction/CompactionJobPrioritizer.java:
##########
@@ -44,6 +49,11 @@ public static short createPriority(CompactionKind kind, int
totalFiles, int comp
return (short) prio;
case SELECTOR:
case SYSTEM:
+ // Given that tablets with too many files cause several problems,
+ // boost their priority to the maximum allowed value.
+ if (condition == Condition.TABLET_OVER_SIZE) {
+ return Short.MAX_VALUE;
Review Comment:
Could possibly increment a metric for this condition, although I'm not sure
how useful it would be. I think knowing that all of the external compactors and
compaction threads in the tservers are fully utilized, along with a backlog of
waiting compactions, is a more useful indication that more capacity is needed.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]