-
Notifications
You must be signed in to change notification settings - Fork 719
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
server/tso: fix the panic issue when getTS in the follower #1930
Conversation
Signed-off-by: nolouch <nolouch@gmail.com>
/run-all-tests |
@@ -265,9 +265,13 @@ func (t *TimestampOracle) GetRespTS(count uint32) (pdpb.Timestamp, error) { | |||
return resp, errors.New("tso count should be positive") | |||
} | |||
|
|||
failpoint.Inject("skipRetryGetTS", func() { |
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.
can we add maxRetryCount
to TimestampOracle
to avoid using failpoint?
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.
Let's keep this variable unchanged inside bug fix firstly.
/release |
/merge |
/run-all-tests |
cherry pick to release-3.1 failed |
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch nolouch@gmail.com
What problem does this PR solve?
Details:
What is changed and how it works?
fix the nil pointer.
Check List
Tests