Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change order of sanity check and downsample removal #190

Merged
merged 1 commit into from
May 3, 2024

Conversation

minnerbe
Copy link
Collaborator

@minnerbe minnerbe commented May 2, 2024

This is to fix an issue with the append mode of the N5 client: if one of the sanity checks in setupAppendExportN5 fails, the whole process is aborted. However, the downsampled data was already removed at this point, rendering the existing N5 invalid.

By changing the order, the sanity checks should abort before touching the N5.

There is one thing I'm not sure about: setupAppendExportN5 updates some metadata of the N5. Is it ok to do this before removing the data, or is the metadata used in the removal process?

@minnerbe minnerbe requested a review from trautmane May 2, 2024 22:49
Copy link
Collaborator

@trautmane trautmane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be fine

@trautmane trautmane merged commit 2f10d88 into newsolver May 3, 2024
2 checks passed
@trautmane trautmane deleted the fix-n5-append branch May 3, 2024 16:51
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