Skip to content

Fix shard clean up on snapshot restore without manifest#7673

Merged
timvisee merged 2 commits intodevfrom
fix-restore-local-replica-from-drop-handler
Dec 3, 2025
Merged

Fix shard clean up on snapshot restore without manifest#7673
timvisee merged 2 commits intodevfrom
fix-restore-local-replica-from-drop-handler

Conversation

@timvisee
Copy link
Member

@timvisee timvisee commented Dec 2, 2025

Also gracefully stop local shard if we:

  • recover shard from snapshot
  • don't provide snapshot manifest

Should fix crasher run:

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Comment on lines +233 to +238
Some(shard) if snapshot_manifest.is_empty() => {
// Shard is no longer needed and can be dropped
shard.stop_gracefully().await;

None
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Here's a branch where we also dropped shard (LocalShard). So we should gracefully stop.

@qdrant qdrant deleted a comment from coderabbitai bot Dec 2, 2025
@timvisee timvisee changed the title Fix restore local replica from drop handler Fix not cleaning up local shard on replica snapshot restore without manifest Dec 2, 2025
@timvisee timvisee changed the title Fix not cleaning up local shard on replica snapshot restore without manifest Fix shard clean up on snapshot restore without manifest Dec 2, 2025
@timvisee timvisee merged commit be07490 into dev Dec 3, 2025
15 checks passed
@timvisee timvisee deleted the fix-restore-local-replica-from-drop-handler branch December 3, 2025 07:52
timvisee added a commit that referenced this pull request Dec 3, 2025
* On local replica recovery, also gracefully stop shard without manifest

* Reformat
@timvisee timvisee mentioned this pull request Dec 3, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants