Skip to content

Deadlock when trying to open same zarr file with multiple processes #2868

Answered by rabernat
relativityhd asked this question in Q&A
Discussion options

You must be logged in to vote

Zarr by itself is not capable of providing safe concurrent modification of metadata from multiple uncoordinated processes, as in your example. There are inevitable race conditions and deadlocks. It's up to the user's code to avoid these situations.

I would highly recommend exploring Icechunk for this scenario. Icechunk augments Zarr with a transactional storage engine. With Icechunk as your store, each process can commit its changes in a safe way via an ACID transaction.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rabernat
Comment options

@relativityhd
Comment options

@rabernat
Comment options

Answer selected by relativityhd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants