public class KillUnusedSegments extends Object implements CoordinatorDuty
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.
| Constructor and Description |
|---|
KillUnusedSegments(SegmentsMetadataManager segmentsMetadataManager,
IndexingServiceClient indexingServiceClient,
DruidCoordinatorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
DruidCoordinatorRuntimeParams |
run(DruidCoordinatorRuntimeParams params)
Implementations of this method run various activities performed by the coordinator.
|
@Inject public KillUnusedSegments(SegmentsMetadataManager segmentsMetadataManager, IndexingServiceClient indexingServiceClient, DruidCoordinatorConfig config)
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
CoordinatorDutyrun in interface CoordinatorDutyDruidCoordinator.DutiesRunnable) from running until the next
cycle.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.