Skip to content

fix: cleanup checkpoint intent/apply lock files after checkpoint#687

Merged
adsharma merged 1 commit into
mainfrom
cleanup_intent
Jul 14, 2026
Merged

fix: cleanup checkpoint intent/apply lock files after checkpoint#687
adsharma merged 1 commit into
mainfrom
cleanup_intent

Conversation

@adsharma

Copy link
Copy Markdown
Contributor

The intent/apply lock files (*.checkpoint.intent.lock and *.checkpoint.apply.lock) introduced for concurrent read-only access during checkpoint were never cleaned up after the checkpoint finished. releaseCheckpointLocks() only closed the file handles but didn't delete the files from disk.

Fix by calling removeFileIfExists() on both lock files after the FileInfo handles are released in releaseCheckpointLocks().

The intent/apply lock files (*.checkpoint.intent.lock and
*.checkpoint.apply.lock) introduced for concurrent read-only access
during checkpoint were never cleaned up after the checkpoint finished.
releaseCheckpointLocks() only closed the file handles but didn't
delete the files from disk.

Fix by calling removeFileIfExists() on both lock files after the
FileInfo handles are released in releaseCheckpointLocks().
@adsharma adsharma merged commit 3c1a9c7 into main Jul 14, 2026
4 checks passed
@adsharma adsharma deleted the cleanup_intent branch July 14, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant