Hi team, I am using Druid 24.0.0 on my local. I ha...
# troubleshooting
s
Hi team, I am using Druid 24.0.0 on my local. I have defined a compaction rule on my datasource. Though setting the
Skip offset from latest
as PT0S, druid is not auto compacting the segments. After manual server restart Compaction is happening. My compaction config looks like:
Copy code
{
  "dataSource": "shivam_test_with_diff_dates",
  "taskPriority": 25,
  "inputSegmentSizeBytes": 100000000000000,
  "maxRowsPerSegment": 5000000,
  "skipOffsetFromLatest": "PT0S",
  "tuningConfig": {
    "maxRowsInMemory": null,
    "appendableIndexSpec": null,
    "maxBytesInMemory": null,
    "maxTotalRows": null,
    "splitHintSpec": null,
    "partitionsSpec": {
      "type": "dynamic",
      "maxRowsPerSegment": 5000000,
      "maxTotalRows": null
    },
    "indexSpec": null,
    "indexSpecForIntermediatePersists": null,
    "maxPendingPersists": null,
    "pushTimeout": null,
    "segmentWriteOutMediumFactory": null,
    "maxNumConcurrentSubTasks": null,
    "maxRetry": null,
    "taskStatusCheckPeriodMs": null,
    "chatHandlerTimeout": null,
    "chatHandlerNumRetries": null,
    "maxNumSegmentsToMerge": null,
    "totalNumMergeTasks": null,
    "maxColumnsToMerge": null,
    "type": "index_parallel",
    "forceGuaranteedRollup": false
  },
  "granularitySpec": {
    "segmentGranularity": "DAY",
    "queryGranularity": null,
    "rollup": false              
  "dimensionsSpec": null,
  "metricsSpec": null,
  "transformSpec": null,
  "ioConfig": null,
  "taskContext": null
  }
}
What is wrong. Can someone plz help.
p
TBH I would look at your coordinator log. You will see much detail here in when the compaction run starts, what segments are selected, etc.
s
@Peter Marshall I read the
Segment search policy
, and both the condition suffices for me.....My problem is that compaction is not happening automatically. I need to manually restart the server. After manual start only I see the
Awaiting First Run
in compaction column, and then compaction happens....
j
Is it possible that your compaction task slots are somehow not available? Zombie tasks that get cleared out with the restart? But also +1 on Peter's suggestion of looking at the Coordinator log ... that should tell you if Coordinator is even checking.