Repository navigation
[mmap sparse vector storage] return cancelled error if stopped - #5938
Merged
Merged
Conversation
coszio
commented
Feb 3, 2025
Comment on lines
+243
to
+246
|
|
||
| // return cancelled error if stopped | ||
| check_process_stopped(stopped)?; | ||
|
|
ffuugoo
approved these changes
Feb 3, 2025
timvisee
pushed a commit
that referenced
this pull request
Feb 11, 2025
* return cancelled error if stopped * add doc comment and renames
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a bug that happened when updating a mmap sparse vector storage is cancelled.
An invariant was broken when handling the
stoppedflag. All other implementations stop midway and returnOperationError::Cancelled, but this implementation just stopped iterating, and returned a partial updated range.This caused the range check to fail, don't handle cancellation nicely, and send a service error back all the way to the user.