Shivam Jain
12/01/2025, 11:23 AMSkip offset from latest as PT0S, druid is not auto compacting the segments. After manual server restart Compaction is happening.
My compaction config looks like:
{
"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.Peter Marshall
12/01/2025, 12:14 PMPeter Marshall
12/01/2025, 12:15 PMShivam Jain
12/01/2025, 12:34 PMSegment 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....John Kowtko
12/03/2025, 1:30 AM