Skip to content

Reduce zarr stuckness - #2872

Merged
jjnesbitt merged 2 commits into
masterfrom
reduce-zarr-stuckness
Jul 28, 2026
Merged

Reduce zarr stuckness#2872
jjnesbitt merged 2 commits into
masterfrom
reduce-zarr-stuckness

Conversation

@danlamanna

Copy link
Copy Markdown
Contributor

This PR partially addresses #2219.

It removes an accidentally introduced overbroad lock (#2111), and allows the ingestion of zarr archives to retry tasks when they fail due to deadlock, which is what happened with the latest slate of stuck zarrs.

The nature of ingesting zarrs makes for one long transaction (long as in seconds), which provides a large window of opportunity for simultaneous requests against the same resources to depend on each other.

I'd like to do a more thorough analysis of operations that conflict with each other, but for now this should significantly reduce the "zarr stuck in ingesting" problem - and otherwise there should be a deadlock error in sentry.

This was an accidental overeager locking as a result of the
select_related call. The dandiset doesn't need to be locked during
this (relatively slow) transaction.
@jjnesbitt jjnesbitt added the patch Increment the patch version when merged label Jul 28, 2026

@jjnesbitt jjnesbitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for catching this! That was definitely an oversight on my part.

I'm going to merge, but hold off on releasing since #2869 will hopefully be merged in the near future, which reworks some un-released changes in master.

@jjnesbitt
jjnesbitt merged commit c722040 into master Jul 28, 2026
7 checks passed
@jjnesbitt
jjnesbitt deleted the reduce-zarr-stuckness branch July 28, 2026 16:38
@dandibot

dandibot commented Aug 5, 2026

Copy link
Copy Markdown
Member

🚀 PR was released in v1.0.0 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants