Skip to content

grpclb: cache requestConnection if no subchannel created#7434

Merged
dapengzhang0 merged 1 commit intogrpc:masterfrom
dapengzhang0:grpclb-request-connection
Sep 16, 2020
Merged

grpclb: cache requestConnection if no subchannel created#7434
dapengzhang0 merged 1 commit intogrpc:masterfrom
dapengzhang0:grpclb-request-connection

Conversation

@dapengzhang0
Copy link
Copy Markdown
Contributor

@dapengzhang0 dapengzhang0 commented Sep 16, 2020

An issue was found during CBT RLS client testing: The RLS lb creates grplb child balancer, calls grpclb.handleResolvedAddress() then immediately calls grpclb.requestConnection(). The subchannel in GrpclbState.currentPicker.pickList contains only GrpclbState.BUFFER_ENTRY at the moment grpclb.requestConnection() is called, and therefore the requestConnection() is no-op, and RPC is hanging.

@dapengzhang0 dapengzhang0 merged commit 3abdb28 into grpc:master Sep 16, 2020
@dapengzhang0 dapengzhang0 deleted the grpclb-request-connection branch September 16, 2020 23:48
@zhangkun83
Copy link
Copy Markdown
Contributor

Filed #7435

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants