-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
autoclose with distributed doesn't seem to work #1394
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
Comments
Just to make sure, which version of xarray are you using? |
0.9.3 |
OK, so that shouldn't be a problem. Hmm. My only suggestion is that we should think about trying to write a fuller test suite for the auto-close functionality, using a mock or fake of some sort that we can interrogate to verify it works properly. One simple thing would be to refactor the autoclose functionality into a single separate adaptor datastore (which wraps an underlying datastore) that we can more easily test, rather than putting it onto each of the underlying datastore classes. I'm not sure why I didn't think of that when @pwolfram was writing this before. |
The idea of a fuller test suite is a good idea. One problem is that many of these applications involve really big datasets, so it is hard to share examples. |
@rabernat, I would say that this is a bug. Is this with the |
Note, we don't use |
netCDF4. decode_cf doesn't seem to affect anything important. |
I think that there is an underlying problem with the way that I do notice that |
Closing this old issue. I'm assuming this behavior no longer exists following the backend refactors in 2018. @rabernat (or others) please reopen if you feel there is more to do here. |
I am trying to analyze a very large netCDF dataset using xarray and distributed.
I open my dataset with the new
autoclose
option:However, when I try some reduction operation (e.g.
ds['Salt'].mean()
), I can see my open file count continue to rise monotonically. Eventually the dask worker dies withOSError: [Errno 24] Too many open files: '/proc/65644/sta
once I hit the system ulimit.Am I doing something wrong here? Why are the files not being closed? cc: @pwolfram
The text was updated successfully, but these errors were encountered: