Skip to content

Fix: Chunksize when opening sharded zarr#11464

Draft
taus wants to merge 2 commits into
pydata:mainfrom
taus:open-zarr-shards
Draft

Fix: Chunksize when opening sharded zarr#11464
taus wants to merge 2 commits into
pydata:mainfrom
taus:open-zarr-shards

Conversation

@taus

@taus taus commented Jul 21, 2026

Copy link
Copy Markdown

Description

Use Zarr shards as the preferred chunk size in when opening Zarr datasets. Previously it was necessary to
know the shard size when opening to avoid error saving back to disk.

I think the term chunk is overloaded. In this case, chunk can refer to both Dask chunks and Zarr chunks, which are not necessarily the same. In the case of a shared Zarr archive, i would argue that the sensible choice of Dask chunks is the shard size. When writing to disk it could create race conditions with multiple Dask chunks in the same shard. This is also what caused the original error

Checklist

@github-actions github-actions Bot added topic-backends topic-zarr Related to zarr storage library io labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

io topic-backends topic-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to roundtrip sharded zarr

1 participant