Daniel Müller
09/17/2025, 12:50 PMdropBeforeByPeriod (PT25D) + druid.coordinator.kill.bufferPeriod (PT1H). And there are no traces of them in the PostgreSQL meta store.
For example there are index files for 2024-12-16:
2024-12-17 16:01 133M s3://druid-storage/druid/segments/events/2024-12-16T00:00:00.000Z_2024-12-17T00:00:00.000Z/2024-12-17T15:43:26.113Z/5/index.zip
but the earliest segment in the meta store's druid_segments table is 2025-07-21. Note that the datasource drop retention is 25 days.
We had automatic kill task from the get go and I also run manual kill tasks. Here are the kill configs:
druid.coordinator.kill.on=true
druid.coordinator.kill.period=PT20M
druid.coordinator.kill.durationToRetain=PT1H
druid.coordinator.kill.maxSegments=1000
druid.coordinator.kill.ignoreDurationToRetain=true
druid.coordinator.kill.bufferPeriod=PT1H
druid.kill.taskStatusCheckPeriod=PT1M
druid.kill.maxRetries=3
druid.kill.taskTimeout=PT2H
druid.coordinator.kill.maxRunningTasks=20
druid.coordinator.kill.segmentsPerSecond=75
druid.coordinator.kill.taskPriority=10
I have two questions:
1. Is it safe to delete these orphaned segments as a temporary approach? We are kind of in a disaster.
2. How can I troubleshoot this issue? (edited)Daniel Müller
09/17/2025, 2:48 PMBen Krug
09/17/2025, 4:41 PMDaniel Müller
09/17/2025, 5:09 PM2025-08-29 01:03 137M s3://druid-storage/druid/segments/events/2025-08-18T00:00:00.000Z_2025-08-19T00:00:00.000Z/2025-08-28T23:59:25.583Z/39/index.zipBen Krug
09/17/2025, 6:41 PMDaniel Müller
09/17/2025, 10:53 PM2025-09-17T22:36:37,256 INFO [TaskQueue-Manager] org.apache.druid.indexing.overlord.TaskLockbox - Cannot create a new taskLockPosse for request[TimeChunkLockRequest{lockType=EXCLUSIVE, groupId='coordinator-issued_kill_events_knlokfbj_2025-09-12T00:00:00.000Z_2025-09-17T00:00:00.000Z_2025-09-17T05:03:4>2025-09-17T22:36:37,256 INFO [TaskQueue-Manager] org.apache.druid.indexing.overlord.TaskLockbox - Cannot create a new taskLockPosse for request[TimeChunkLockRequest{lockType=EXCLUSIVE, groupId='coordinator-issued_kill_events_knlokfbj_2025-09-12T00:00:00.000Z_2025-09-17T00:00:00.000Z_2025-09-17T05:03:4>
Just to be sure that I didn't miss anything and you have all information, here are the coordinator dynamic configs:
{
"millisToWaitBeforeDeleting": 900000,
"maxSegmentsToMove": 100,
"replicantLifetime": 15,
"replicationThrottleLimit": 500,
"balancerComputeThreads": 16,
"killDataSourceWhitelist": [],
"killTaskSlotRatio": 0.9,
"maxKillTaskSlots": 20000,
"killPendingSegmentsSkipList": [],
"maxSegmentsInNodeLoadingQueue": 500,
"decommissioningNodes": [],
"pauseCoordination": false,
"replicateAfterLoadTimeout": false,
"useRoundRobinSegmentAssignment": true,
"smartSegmentLoading": true,
"debugDimensions": null
}
And full coordinator configs:
druid.coordinator.startDelay=PT30S
druid.coordinator.period=PT30S
druid.manager.segments.pollDuration=PT30S
druid.coordinator.period.indexingPeriod=PT15M
druid.coordinator.dutyGroups=["compaction"]
druid.coordinator.compaction.duties=["compactSegments"]
druid.coordinator.compaction.period=PT600S
druid.coordinator.kill.on=true
druid.coordinator.kill.period=PT20M
druid.coordinator.kill.durationToRetain=PT1H
druid.coordinator.kill.maxSegments=1000
druid.coordinator.kill.ignoreDurationToRetain=true
druid.coordinator.kill.bufferPeriod=PT1H
druid.kill.taskStatusCheckPeriod=PT1M
druid.kill.maxRetries=3
druid.kill.taskTimeout=PT2H
druid.coordinator.kill.maxRunningTasks=20
druid.coordinator.kill.segmentsPerSecond=75
druid.coordinator.kill.taskPriority=10John Kowtko
09/17/2025, 11:12 PMDaniel Müller
09/17/2025, 11:24 PM