Class MarkOvershadowedSegmentsAsUnused

  • All Implemented Interfaces:
    CoordinatorDuty

    public class MarkOvershadowedSegmentsAsUnused
    extends Object
    implements CoordinatorDuty
    Marks segments that are overshadowed by currently served segments as unused. This duty runs only if the Coordinator has been running long enough to have a refreshed metadata view. This duration is controlled by the dynamic config millisToWaitBeforeDeleting.
    • Constructor Detail

      • MarkOvershadowedSegmentsAsUnused

        public MarkOvershadowedSegmentsAsUnused​(SegmentDeleteHandler deleteHandler)
    • 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.