Skip to content

Conversation

@thewtex
Copy link
Collaborator

@thewtex thewtex commented May 28, 2025

Re: #152

@thewtex thewtex force-pushed the tensorstore-crash branch from e91fff9 to 9d7d238 Compare June 17, 2025 19:09
@thewtex thewtex changed the title WIP: BUG: Large tensorstore already-exists failure BUG: Large tensorstore already-exists failure Jun 17, 2025
@thewtex thewtex marked this pull request as ready for review June 17, 2025 19:09
When writing large arrays in regions, the code calls _write_array_with_tensorstore multiple times (once for each region), and each time it tries to create a new TensorStore dataset with create=True. After the first region is written, the dataset already exists, so subsequent calls fail with "ALREADY_EXISTS".

Modify the _write_with_tensorstore function to handle the case where the dataset already exists. Check if it's the first region being written (or create the dataset only once) and then open existing datasets for subsequent regions.

Re: #152
@thewtex thewtex force-pushed the tensorstore-crash branch from 9d7d238 to 133de45 Compare June 17, 2025 19:19
@thewtex thewtex merged commit 2aeee99 into main Jun 17, 2025
35 of 36 checks passed
@thewtex thewtex deleted the tensorstore-crash branch June 17, 2025 20:26
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.

2 participants