Ensure no file handles remain open during in-place persist (closes #292).#300
Merged
01mf02 merged 1 commit into01mf02:mainfrom Jul 3, 2025
fgimian:avoid-open-handles-during-persist
Merged
Ensure no file handles remain open during in-place persist (closes #292).#30001mf02 merged 1 commit into01mf02:mainfrom fgimian:avoid-open-handles-during-persist
01mf02 merged 1 commit into01mf02:mainfrom
fgimian:avoid-open-handles-during-persist
Conversation
Owner
|
Hi @fgimian, thanks for diagnosing this problem! I find the code repetition to be a bit problematic, though; wouldn't it suffice to run |
Contributor
Author
Good idea, I'll give it a try tomorrow and let you know how it goes. Cheers |
Contributor
Author
|
@01mf02 Thanks again for your help, I've tested your idea and it indeed does work as expected. I've updated the PR with the change discussed so it should be ready for review again. Cheers |
Owner
|
Excellent! Thanks for your confirmation and for your help with diagnosing this issue! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey there, here's the fix for persisting files using the in-place option on Windows. This will ensure that the file handle used for processing of the file will be released before persisting to disk from the temp directory.
See output below:
Unfortunately, this does lead to a tiny bit of repeated code, but I think this is somewhat unavoidable.
Cheers
Fotis