Repository navigation
better handle non-transient errors - #5506
Merged
Merged
Conversation
timvisee
reviewed
Nov 22, 2024
Comment on lines
+366
to
+367
| // If there is at least one full-complete operation, we can't ignore non-transient errors (4xx) | ||
| // And we must deactivate failed replicas to ensure consistency |
Member
There was a problem hiding this comment.
I don't fully understand why this is the case.
Isn't exactly the same true for all acknowledged updates, because we can assume they'll be applied (eventually) as well?
Could you provide an example which was problematic and has improved now, and potentially a counter example on why it isn't necessary for just acknowledged updates?
Member
Author
There was a problem hiding this comment.
timvisee
approved these changes
Nov 25, 2024
ffuugoo
approved these changes
Nov 26, 2024
ffuugoo
left a comment
Contributor
There was a problem hiding this comment.
I still don't like it and feel like there should be a better way to handle this, but I did not figure it out yet, so I propose we merge it and see how it works, and I'll try to revisit it later. 😔
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.

During stream shard transfer in ForwardShardProxy we modify
waitparameter for internal and forwarded requests.This can lead to inconsistent responses across replicas, as wait=true/false affects when the validation of request is happening. It might be, that some replicas accept the request, while the one with shard transfer doesn't.
This inconsistency triggers the consistency resolution mechanism, which previously ignored the difference between transient and non-transient errors.
This PR makes consistency resolution more careful with non-transient errors and only deactivate the replica if there are others who completely applied update operation