Class MarkOvershadowedSegmentsAsUnused
java.lang.Object
org.apache.druid.server.coordinator.duty.MarkOvershadowedSegmentsAsUnused
- All Implemented Interfaces:
CoordinatorDuty
Marks a segment as unused if it is overshadowed by:
- a segment served by a historical or broker
- a segment that has zero required replicas and thus will never be loaded on a server
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
CoordinatorDynamicConfig.markSegmentAsUnusedDelayMillis.
-
Constructor Summary
ConstructorsConstructorDescriptionMarkOvershadowedSegmentsAsUnused(MetadataAction.DeleteSegments deleteHandler) -
Method Summary
Modifier and TypeMethodDescriptionrun(DruidCoordinatorRuntimeParams params) Implementations of this method run various activities performed by the coordinator.
-
Constructor Details
-
MarkOvershadowedSegmentsAsUnused
-
-
Method Details
-
run
Description copied from interface:CoordinatorDutyImplementations 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:
runin interfaceCoordinatorDuty- 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.
-