Search in sources :

Example 1 with LogUsedSegments

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);
}
Also used : CoordinatorDuty(org.apache.druid.server.coordinator.duty.CoordinatorDuty) ArrayList(java.util.ArrayList) LogUsedSegments(org.apache.druid.server.coordinator.duty.LogUsedSegments) VisibleForTesting(com.google.common.annotations.VisibleForTesting)

Aggregations

VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 ArrayList (java.util.ArrayList)1 CoordinatorDuty (org.apache.druid.server.coordinator.duty.CoordinatorDuty)1 LogUsedSegments (org.apache.druid.server.coordinator.duty.LogUsedSegments)1