Class KillUnusedSegments

  • All Implemented Interfaces:
    CoordinatorDuty

    public class KillUnusedSegments
    extends Object
    implements CoordinatorDuty
    Completely removes information about unused segments who have an interval end that comes before now - retainDuration from the metadata store. retainDuration can be a positive or negative duration, negative meaning the interval end target will be in the future. Also, retainDuration can be ignored, meaning that there is no upper bound to the end interval of segments that will be killed. This action is called "to kill a segment".

    See org.apache.druid.indexing.common.task.KillUnusedSegmentsTask.

    • Field Detail

      • IS_AUTO_KILL_TASK

        public static final com.google.common.base.Predicate<org.apache.druid.indexer.TaskStatusPlus> IS_AUTO_KILL_TASK
    • Method Detail

      • run

        public DruidCoordinatorRuntimeParams run​(DruidCoordinatorRuntimeParams params)
        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.