Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closing file after deleting #408

Merged
merged 1 commit into from Aug 16, 2022
Merged

closing file after deleting #408

merged 1 commit into from Aug 16, 2022

Conversation

hg-ms
Copy link
Contributor

@hg-ms hg-ms commented Aug 16, 2022

When deleting a StorageFile its delete method ensures that the StorageFile is writable. The ensureWritable method internally opens a FileChannel if the NIO AFS is used. That FileChannel is not closed after deleting the file (in the app). The open file channel may pevent the OS from deleting the file and releasing disk space.

@hg-ms hg-ms requested a review from fh-ms August 16, 2022 10:57
@hg-ms hg-ms merged commit 0d6fd04 into master Aug 16, 2022
@hg-ms hg-ms deleted the bug/fileNotClosedAfterDeleting branch August 16, 2022 11:20
@fh-ms fh-ms added this to the 08.00.00 milestone Dec 12, 2022
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.

None yet

2 participants