Skip to content

api/core/grpclb: add warning about calling Subchannel.requestConnection() outside of sync-context#5757

Merged
zhangkun83 merged 2 commits intogrpc:masterfrom
zhangkun83:pickfirst_requestconnection
May 20, 2019
Merged

api/core/grpclb: add warning about calling Subchannel.requestConnection() outside of sync-context#5757
zhangkun83 merged 2 commits intogrpc:masterfrom
zhangkun83:pickfirst_requestconnection

Conversation

@zhangkun83
Copy link
Copy Markdown
Contributor

The pick_first policies in core and grpclb previously would call
Subchannel.requestConnection() from data-path. They now will schedule
that call in the sync-context to avoid the warning. They will only
call it for the first pick of each picker, to prevent storming the
sync-context.

…on() outside of sync-context

The pick_first policies in core and grpclb previously would call
Subchannel.requestConnection() from data-path.  They now will schedule
that call in the sync-context to avoid the warning.  They will only
call it for the first pick of each picker, to prevent storming the
sync-context.
@zhangkun83 zhangkun83 requested a review from ejona86 May 17, 2019 17:28
@zhangkun83 zhangkun83 merged commit a2595d9 into grpc:master May 20, 2019
@zhangkun83 zhangkun83 deleted the pickfirst_requestconnection branch May 20, 2019 18:39
@lock lock bot locked as resolved and limited conversation to collaborators Aug 18, 2019
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