Skip to content

Add N5Reader.readShard and N5Writer.writeShard#201

Open
bogovicj wants to merge 8 commits intodevelopmentfrom
feat/read-write-shard
Open

Add N5Reader.readShard and N5Writer.writeShard#201
bogovicj wants to merge 8 commits intodevelopmentfrom
feat/read-write-shard

Conversation

@bogovicj
Copy link
Contributor

And a few tests.

see #196

@bogovicj bogovicj changed the base branch from master to development January 28, 2026 01:00
@bogovicj bogovicj marked this pull request as ready for review January 30, 2026 19:51
@bogovicj
Copy link
Contributor Author

bogovicj commented Jan 30, 2026

Want to highlight this commit 6add658

that addresses an issue that came up during shard deletion.
When deleting one block that is part of a shard, the shard needs to be read so that the data for other blocks can be re-written.

At this time, we need to ensure that this reading happens before a write lock is acquired, hence the fix in the commit above.

We may need to revisit this after #202

* rather return, leaving the request's blocks as null
* test a list of nulls is returned for non-existing blocks
* test number of backend read calls for readBlocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant