You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "Akshat-Jain (via GitHub)" <gi...@apache.org> on 2026/09/25 04:53:14 UTC

[PR] Batch deletes in DurableStorageCleaner to avoid overlord OOM (druid)

Akshat-Jain opened a new pull request, #20425:
URL: https://github.com/apache/druid/pull/20425

   ### Description
   
   `DurableStorageCleaner.run()` collects every stray file path into a single in-memory HashSet and only calls `StorageConnector.deleteFiles` once the entire listing has completed. Memory is therefore `O(number of stray files in durable storage)`, with no bound.
   
   This caused issues on a deployment where we seem to have a lot of those files leaked in S3, causing the overlord to run into OOM.
   
   This PR improves the logic to flush the buffer to `deleteFiles` every 100k paths. 100k is a reasonably-sized number which should be higher than what every cloud provider limits the batch size to, while still being decent-sized to do well in the case of large number of files.
   
   <hr>
   
   This PR has:
   
   - [x] been self-reviewed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] fix: Batch deletes in DurableStorageCleaner to avoid overlord OOM (druid)

Posted by "cryptoe (via GitHub)" <gi...@apache.org>.
cryptoe merged PR #20425:
URL: https://github.com/apache/druid/pull/20425


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org