Skip to content
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 UpdateBalancingState not called when address attributes are modified #2553

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Oct 8, 2024

gRPC load balancing would update subchannels with modified address attributes when they changed, but the overall channel state was never updated.

Copy link

linux-foundation-easycla bot commented Oct 8, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@JamesNK
Copy link
Member Author

JamesNK commented Oct 8, 2024

Ready for review. I know grpc-web test is failing. Will fix it once RC2 is public.

Copy link
Contributor

@amcasey amcasey left a 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.

global.json Show resolved Hide resolved
@@ -122,6 +122,7 @@ public override void UpdateChannelState(ChannelState state)

var allUpdatedSubchannels = new List<AddressSubchannel>();
var newSubchannels = new List<Subchannel>();
var modifiedSubchannelsCount = 0;
Copy link
Contributor

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.

@JamesNK JamesNK merged commit 0f2ffdc into grpc:master Oct 9, 2024
5 checks passed
@JamesNK JamesNK deleted the SubchannelsLoadBalancerTests branch October 9, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants