Class CompactSegments

java.lang.Object
org.apache.druid.server.coordinator.duty.CompactSegments
All Implemented Interfaces:
CoordinatorCustomDuty, CoordinatorDuty

public class CompactSegments extends Object implements CoordinatorCustomDuty
  • Field Details

    • COMPACTION_TASK_TYPE

      public static final String COMPACTION_TASK_TYPE
      Must be the same as org.apache.druid.indexing.common.task.CompactionTask.TYPE.
      See Also:
    • STORE_COMPACTION_STATE_KEY

      public static final String STORE_COMPACTION_STATE_KEY
      Must be the same as org.apache.druid.indexing.common.task.Tasks.STORE_COMPACTION_STATE_KEY
      See Also:
  • Constructor Details

  • Method Details

    • getOverlordClient

      public OverlordClient getOverlordClient()
    • run

      Description copied from interface: CoordinatorDuty
      Implementations of this method run various activities performed by the coordinator. Input params can be used and modified. The returned DruidCoordinatorRuntimeParams is passed to the next duty.
      Specified by:
      run in interface CoordinatorDuty
      Returns:
      same as input or a modified value to be used by next duty. Null return values will prevent subsequent CoordinatorDuty objects (see the order in the lists passed into the constructor of DruidCoordinator.DutiesRunnable) from running until the next cycle.
    • run

      public void run(DruidCompactionConfig dynamicConfig, DataSourcesSnapshot dataSources, CompactionEngine defaultEngine, CoordinatorRunStats stats)
    • findMaxNumTaskSlotsUsedByOneNativeCompactionTask

      public static int findMaxNumTaskSlotsUsedByOneNativeCompactionTask(@Nullable ClientCompactionTaskQueryTuningConfig tuningConfig)
      Returns the maximum number of task slots used by one native compaction task at any time when the task is issued with the given tuningConfig.
    • getAutoCompactionSnapshot

      @Nullable public AutoCompactionSnapshot getAutoCompactionSnapshot(String dataSource)
    • getAutoCompactionSnapshot

      public Map<String,AutoCompactionSnapshot> getAutoCompactionSnapshot()