-
Notifications
You must be signed in to change notification settings - Fork 806
Fix UpdateBalancingState not called when address attributes are modified #2553
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
Conversation
8736ee5
to
41b297d
Compare
Ready for review. I know grpc-web test is failing. Will fix it once RC2 is public. |
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 code seems to match the description and the description seems reasonable.
@@ -122,6 +122,7 @@ public override void UpdateChannelState(ChannelState state) | |||
|
|||
var allUpdatedSubchannels = new List<AddressSubchannel>(); | |||
var newSubchannels = new List<Subchannel>(); | |||
var modifiedSubchannelsCount = 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.
It doesn't seem important either way, but it looks like this could be a simple bool.
gRPC load balancing would update subchannels with modified address attributes when they changed, but the overall channel state was never updated.