-
Notifications
You must be signed in to change notification settings - Fork 247
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 task retry if tikv is down #1207
Fix task retry if tikv is down #1207
Conversation
/run-all-tests |
@@ -248,6 +248,6 @@ public boolean handleRequestError(BackOffer backOffer, Exception e) { | |||
BackOffFunction.BackOffFuncType.BoTiKVRPC, | |||
new GrpcException( | |||
"send tikv request error: " + e.getMessage() + ", try next peer later", e)); | |||
return true; | |||
return false; |
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.
mind if we add a comment for this change?
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.
fixed
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.
LGTM
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## release-2.1 #1207 +/- ##
==============================================
Coverage ? 53.29%
Complexity ? 1122
==============================================
Files ? 153
Lines ? 7027
Branches ? 821
==============================================
Hits ? 3745
Misses ? 2908
Partials ? 374
Continue to review full report at Codecov.
|
What problem does this PR solve?
close #1208
Retry fails if TiKV is down during spark task running
What is changed and how it works?
if TiKV is down during spark task running, tispark will refetch leader from PD.
Check List
Tests
Related changes