-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
tikv: fix infinite panic when GRPC transportReader is broken #18437
Conversation
/rebuild |
Codecov Report
@@ Coverage Diff @@
## master #18437 +/- ##
===========================================
Coverage 79.2752% 79.2752%
===========================================
Files 541 541
Lines 145295 145295
===========================================
Hits 115183 115183
Misses 20823 20823
Partials 9289 9289 |
LGTM |
@tiancaiamao,Thanks for your review. |
LGTM |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@lysu merge failed. |
/run-all-tests |
@lysu merge failed. |
|
/merge |
/run-all-tests |
@lysu merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@lysu merge failed. |
/run-unit-test |
/merge |
/run-all-tests |
@lysu merge failed. |
/merge |
/run-all-tests |
@lysu merge failed. |
/run-unit-test |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #18562 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: lysu <sulifx@gmail.com>
What problem does this PR solve?
Issue Number: refer #18339
Problem Summary:
when panic like #18339 happened, batchClient will recovery from panic without reCreate stream and meet panic again and again...
What is changed and how it works?
What's Changed, How it Works:
although we didn't know how to broke transportReader, we can break infinite panic by covert panic to an error in
recv
method, then the error will trigger reCreate streammake it recovery from broken transportReader
Related changes
Check List
Tests
Side effects
Release note
This change is