Skip to content

Conversation

@zhangkun83
Copy link
Contributor

@zhangkun83 zhangkun83 commented May 10, 2019

Backport of #5718

I see more cases of wrapping Helper and Subchannel during the work of
XdsLoadBalancer, we will require that all methods that involve mutable
state to be called from the Synchronization Context. We will start
logging warnings first, and make them throw in a future release.

Helper.createSubchannel() is already doing so. This change adds
warnings to the other eligible methods.

#5015

…grpc#5718)

I see more cases of wrapping Helper and Subchannel during the work of
XdsLoadBalancer, we will require that all methods that involve mutable
state to be called from the Synchronization Context.  We will start
logging warnings first, and make them throw in a future release.

Helper.createSubchannel() is already doing so.  This change adds
warnings to the other eligible methods.

grpc#5015
@zhangkun83 zhangkun83 added this to the 1.21 milestone May 10, 2019
@zhangkun83 zhangkun83 requested a review from ejona86 May 10, 2019 06:43
@zhangkun83 zhangkun83 merged commit 81f3664 into grpc:v1.21.x May 14, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 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