You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code snippet will happily run (assuming s3 credentials are setup properly etc) and function exits successfully, but later when the file object destructor get called, we will see the following exception
The text was updated successfully, but these errors were encountered:
heiseish
changed the title
Context not preserve when open file with compression
Context not preserved when open file with compression, leading exception to be ignored
Sep 14, 2024
This sounds like a genuine bug. I know there are methods to chain contexts, but probably there is a simple fix available by patching the close method of the compression file-like object.
This kind of thing doesn't show up in tests because:
this is windows specific behaviour (linux/bsd is happy to delete files that are open elsewhere)
the exception doesn't actually cause any failures, as you have seen. So we should like to be able to make a test case, perhaps with an explicit del which exposes it.
Context
compression
parameter tofsspec.open
, the underlying Filesystem object is not properly cleaned up (even with context).Details
Reproducible code
The above code snippet will happily run (assuming s3 credentials are setup properly etc) and function exits successfully, but later when the file object destructor get called, we will see the following exception
Exception
I have not tried with any other FS yet but I reckon as long as we can trigger the error during flush/close, we should be able to reproduce the error.
Temporary work around
Relevant library code
The text was updated successfully, but these errors were encountered: