grpc-go
grpc-go copied to clipboard
xds: use locality from the connected address for load reporting
- Add
SubConnState.connectedAddress
field. - Add
internal.GetConnectedAddress
andinternal.SetConnectedAddress
accessor functionvar
s to get and setSubConnState.connectedAddress
. - Set the connected address in
acBalancerWrapper.updateState
when connectivity state isReady
. - Read the connected address in the subconn
StateListener
and callupdateLocalityID()
based on that address's locality. - Modify
addrConn
to store the fullresolver.Address
rather than one withBalancerAttributes
removed. - Modify a test to check for the new correct behavior.
Fixes #7339
RELEASE NOTES:
- TBD