clintropolis opened a new pull request, #18696: URL: https://github.com/apache/druid/pull/18696
This PR changes how segment files are deleted from the cache by introducing an atomic move to a staging directory before performing the delete. This ensures that there will not be partial segment files hanging out in the event of a failure during a delete operation, and the staging directory is cleaned up on process start. The staging directory is in the root of the storage location, so if the segment cache path for a segment is something like ``` .../segment_cache_folder/test_2019-01-01T00:00:00.000Z_2019-01-02T00:00:00.000Z_2025-10-24T23:44:38.503Z_5 ``` it would be moved to ``` .../segment_cache_folder/__drop/test_2019-01-01T00:00:00.000Z_2019-01-02T00:00:00.000Z_2025-10-24T23:44:38.503Z_5 ``` prior to deleting. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
