-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xds/clusterimpl: update UpdateClientConnState to handle updates synchronously #7533
xds/clusterimpl: update UpdateClientConnState to handle updates synchronously #7533
Conversation
I also updated the PR description and also got rid of the release notes since we don't need release notes for non-user visible behavior changes. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7533 +/- ##
==========================================
- Coverage 82.07% 81.82% -0.26%
==========================================
Files 360 361 +1
Lines 27533 27808 +275
==========================================
+ Hits 22599 22754 +155
- Misses 3759 3853 +94
- Partials 1175 1201 +26
|
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.
The core modification in this diff appears to be transitioning UpdateClientConnState
into a blocking operation. We should explicitly mention this in the commit description.
Apart from a change suggested for a comment block, this diff LGTM.
Yes, we could make that part of the PR description. |
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
Part of #7210.
UpdateClientConnState
now handles updates in a blocking fashion.To simplify the code, this PR replaces the existing
run
goroutine insideclusterimpl
lb policy and instead handles calls from gRPC and from the child policy (to update state) in agrpcsync.CallbackSerializer
. This approach simplifies things by removing the need for synchronization using locks and other grpcsync.Event fields.RELEASE NOTES: none