Skip to content

Comments

Fix UpdateBalancingState not called when address attributes are modified#2553

Merged
JamesNK merged 3 commits intogrpc:masterfrom
JamesNK:SubchannelsLoadBalancerTests
Oct 9, 2024
Merged

Fix UpdateBalancingState not called when address attributes are modified#2553
JamesNK merged 3 commits intogrpc:masterfrom
JamesNK:SubchannelsLoadBalancerTests

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.

@linux-foundation-easycla
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.


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
@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