-
Notifications
You must be signed in to change notification settings - Fork 13
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
arrow version: on Windows, delete temp files after closing Andromeda #46
Comments
I implemented a strategy of trying to delete all unclosed andromeda every time Here is the solution I came up with. Line 333 in 09d73a0
|
@ablack3 -- I am little concerned about this approach. What happens if multiple |
Thanks for checking my work @msuchard! I definitely need (at least) one more pair of eyes on my code. I don't think multiple sessions will cause an issue because each andromeda object has a unique file path to the folder where it store's its files. Andromeda objects should not share these paths. When a user closes an Andromeda object either the folder is deleted or it is marked for deletion. I think the only danger would be that a new andromeda uses the same path as the old one. This is how I'm creating the andromeda path for a new andromeda object Line 130 in 09d73a0
But I have not tested this and am not 100% sure there will be no issues. If there is a test you can think of that I can add to address your concern please describe it and I'll try to implement it. |
The loop I had does not seem to cause the issue anymore. But I'm encountering this issue in the unit tests for the arrow PLP branch in windows. I can try to create a simple test out of that. |
@egillax Do you think your loop test is something that could be added to Andromeda unit tests? If so would you be willing to create a PR with that test? |
Currently, on Windows, after having used batchApply() or groupApply(), the Andromeda temp files are not deleted when closing the Andromeda object because some lock is maintained. This could cause serious problems when we iterate over many Andromeda objects (like we do in several HADES packages), and we could run out of disc space.
At some later stage the files may be deleted (after a garbage collect). We could keep track of undeleted files, and attempt to delete them at various point in time.
The text was updated successfully, but these errors were encountered: