use of org.apache.druid.server.coordinator.duty.LogUsedSegments in project druid by druid-io.
the class DruidCoordinator method makeIndexingServiceDuties.
@VisibleForTesting
List<CoordinatorDuty> makeIndexingServiceDuties() {
List<CoordinatorDuty> duties = new ArrayList<>();
duties.add(new LogUsedSegments());
duties.addAll(indexingServiceDuties);
// We do not have to add compactSegments if it is already enabled in the custom duty group
if (getCompactSegmentsDutyFromCustomGroups().isEmpty()) {
duties.addAll(makeCompactSegmentsDuty());
}
log.debug("Done making indexing service duties %s", duties.stream().map(duty -> duty.getClass().getName()).collect(Collectors.toList()));
return ImmutableList.copyOf(duties);
}
Aggregations