-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix tablet error handling. #3323
Conversation
Currently errUnservedTablet is being returned when there's an issue with the tablets. However, there are actually two types of errors that should be handled differently. 1. Predicate has not been seen yet so the tablet group id is zero. 2. The group id of the tablet is > 0 but it differs from the id of the current group. This change fixes the error handling. The error running in the move-tablet jepsen test is fixed by it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r1.
Reviewable status: 2 of 7 files reviewed, 1 unresolved discussion (waiting on @manishrjain and @martinmr)
worker/mutation.go, line 44 at r1 (raw file):
ErrNonExistentTabletMessage = "Requested predicate is not being served by any tablet" errUnservedTablet = x.Errorf("Tablet isn't being served by this instance") errNonexistentTablet = x.Errorf(ErrNonExistentTabletMessage)
Move this up to be placed right below the message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 7 files reviewed, 1 unresolved discussion (waiting on @manishrjain)
worker/mutation.go, line 44 at r1 (raw file):
Previously, manishrjain (Manish R Jain) wrote…
Move this up to be placed right below the message.
Done.
Currently errUnservedTablet is being returned when there's an issue with the tablets. However, there are actually two types of errors that should be handled differently. 1. Predicate has not been seen yet so the tablet group id is zero. 2. The group id of the tablet is > 0 but it differs from the id of the current group. This change fixes the error handling. The error running in the move-tablet jepsen test is fixed by it.
Currently errUnservedTablet is being returned when there's an issue with
the tablets. However, there are actually two types of errors that should
be handled differently.
current group.
This change fixes the error handling. The error in the move-tablet jepsen
test is fixed by it.
This change is