sursingh opened a new pull request #2739: URL: https://github.com/apache/bookkeeper/pull/2739
### Motivation While restoring a storage container, we fetch the checkpoint from the checkpoint store. Currently this checkpoint will never get cleaned up. Every time we restore the storage container on pod, a new checkpoint will get added. Over period of time the disk usage keeps going up and eventually we have to manually delete these stale checkpoints. ### Changes With this change, we will cleanup the local storage for a storage container whenever we close the KVStore. This will ensure that stale checkpoints are not left behind. It is possible that POD may restart before the cleanup can be done. To avoid these, we will also ensure that local storage for the storage container is cleaned up before we restore the storage container. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
