You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/02/17 00:33:33 UTC
[GitHub] [druid] jihoonson commented on a change in pull request #12263: Allow coordinator run auto compaction duty period to be configured separately from other indexing duties
jihoonson commented on a change in pull request #12263:
URL: https://github.com/apache/druid/pull/12263#discussion_r808568046
##########
File path: server/src/main/java/org/apache/druid/server/coordinator/DruidCoordinator.java
##########
@@ -797,6 +800,29 @@ private void stopBeingLeader()
return ImmutableList.copyOf(duties);
}
+ private CompactSegments initializeCompactSegmentsDuty()
+ {
+ List<CompactSegments> compactSegmentsDutyFromCustomGroups = getCompactSegmentsDutyFromCustomGroups();
+ if (compactSegmentsDutyFromCustomGroups.isEmpty()) {
+ return new CompactSegments(config, objectMapper, indexingServiceClient);
+ } else {
+ if (compactSegmentsDutyFromCustomGroups.size() > 1) {
+ log.warn("More than one compactSegments duty is configured in the Coordinator Custom Duty Group");
Review comment:
```suggestion
log.warn("More than one compactSegments duty is configured in the Coordinator Custom Duty Group. The first duty will be picked up.");
```
##########
File path: server/src/main/java/org/apache/druid/server/coordinator/duty/CompactSegments.java
##########
@@ -90,10 +92,11 @@
private final AtomicReference<Map<String, AutoCompactionSnapshot>> autoCompactionSnapshotPerDataSource = new AtomicReference<>();
@Inject
+ @JsonCreator
Review comment:
Please add a serde test for this class.
--
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: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org