-
Notifications
You must be signed in to change notification settings - Fork 289
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
kv-client: fix stream is not recycled when meeting recv error #1336
kv-client: fix stream is not recycled when meeting recv error #1336
Conversation
/run-all-tests |
8e8ed1b
to
571855e
Compare
/run-all-tests |
/run-all-tests |
/run-all-tests |
/run-integration-tests |
/run-all-tests |
PTAL @liuzix |
LGTM |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@amyangfei merge failed. |
/run-all-tests |
/run-kafka-tests |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #1336 +/- ##
================================================
+ Coverage 48.2311% 48.2330% +0.0018%
================================================
Files 130 130
Lines 13201 13215 +14
================================================
+ Hits 6367 6374 +7
- Misses 6161 6165 +4
- Partials 673 676 +3 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #1373 |
What problem does this PR solve?
stream.Recv
with error, but the underlying stream is normal actually (or the next round ofstream.Send
is successfully, then thereceiveFromStream
goroutine will be never created, and corresponding events will not be consumed by kv client.What is changed and how it works?
receiveFromStream
routine exits, and remove stream from stream cacheCheck List
Tests
Release note