xarray icon indicating copy to clipboard operation
xarray copied to clipboard

Ensure netcdf4 is locked while closing

Open dschwoerer opened this issue 5 months ago • 2 comments

It did run the test 100 times without issues. Before that every ~1 out of 3 runs failed

  • [ ] Closes #10783
  • [ ] Tests added - no, see #10784
  • [ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [ ] New functions/methods are listed in api.rst

dschwoerer avatar Sep 24 '25 22:09 dschwoerer

Note that this only a partial fix, for the netCDF4 backend, the issue still remains, but with this fix at least we can switch to h5netcdf to have a working solution.

dschwoerer avatar Sep 24 '25 22:09 dschwoerer

@shoyer The tests should be passing now, so hopefully this can be merged soon. Sorry for the delay!

dschwoerer avatar Nov 27 '25 12:11 dschwoerer