issues: 1656130602
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1656130602 | I_kwDOAMm_X85itowq | 7726 | open_zarr: PermissionError with multiple processes despite use of ProcessSynchronizer | 34257249 | open | 0 | 0 | 2023-04-05T18:55:12Z | 2023-04-06T01:37:32Z | CONTRIBUTOR | What happened?Several processes read and write to a xarray stored in .zarr format, on a network. The write operations write to existing regions. These regions are not aligned to chunks, therefore I use a ProcessSynchronizer. The ProcessSynchronizer points to a local folder on SSD, separate from the actual stored array. After several hundreds of read/write I get permission errors like below. So far I have failed to reproduce the error with a MCVE. The file What did you expect to happen?No permission error. Minimal Complete Verifiable Example```Python I have failed so far to reproduce the error with an MVCE. Here my attempt. from pathlib import Path import dask.array as da import pandas as pd import xarray as xr from dask.distributed import Client from zarr.sync import ProcessSynchronizer if name == "main": path_store = Path(aaa) path_synchronizer = Path(bbb) # must exist, and not same location as store
``` MVCE confirmation
Relevant log output
Anything else we need to know?No response Environment
INSTALLED VERSIONS
------------------
commit: None
python: 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 1 2023, 18:18:15) [MSC v.1916 64 bit (AMD64)]
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 85 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: ('English_United States', '1252')
libhdf5: 1.10.6
libnetcdf: None
xarray: 2022.11.0
pandas: 1.5.3
numpy: 1.23.5
scipy: 1.10.0
netCDF4: None
pydap: None
h5netcdf: None
h5py: 3.7.0
Nio: None
zarr: 2.14.2
cftime: None
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: 1.3.5
dask: 2022.7.0
distributed: None
matplotlib: 3.7.0
cartopy: None
seaborn: 0.12.2
numbagg: None
fsspec: 2022.11.0
cupy: None
pint: None
sparse: None
flox: None
numpy_groupies: None
setuptools: 65.6.3
pip: 23.0.1
conda: 23.1.0
pytest: 7.1.2
IPython: 8.10.0
sphinx: 5.0.2
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7726/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |