-
Notifications
You must be signed in to change notification settings - Fork 2.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
fix: Get shard client failed by client is closed #37729
base: master
Are you sure you want to change the base?
Conversation
This PR refine the shard client ref counter, dec ref counter won't release client anymore, and only permit shard client manager to remove client. Signed-off-by: Wei Liu <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: weiliu1031 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #37729 +/- ##
==========================================
+ Coverage 80.57% 80.68% +0.11%
==========================================
Files 1357 1357
Lines 190448 190705 +257
==========================================
+ Hits 153449 153878 +429
+ Misses 31588 31402 -186
- Partials 5411 5425 +14
|
internal/proxy/shard_client.go
Outdated
defer ticker.Stop() | ||
|
||
// record node's age, if node reach 3 consecutive failures, try to purge it | ||
nodeAges := make(map[int64]int, 0) |
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.
this is leaked.
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.
why do we need to count time?
we can record last active time as a mark
Signed-off-by: Wei Liu <[email protected]>
@weiliu1031 go-sdk check failed, comment |
@weiliu1031 E2e jenkins job failed, comment |
Signed-off-by: Wei Liu <[email protected]>
@weiliu1031 E2e jenkins job failed, comment |
/run-cpu-e2e |
issue: #37718
This PR refine the shard client ref counter, dec ref counter won't release client anymore, and only permit shard client manager to remove client.