Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Race condition in idleTimer & ManagedChannel#enterIdle #8746

Merged
merged 1 commit into from Dec 15, 2021

Conversation

dapengzhang0
Copy link
Member

@@ -349,6 +349,9 @@ public InternalLogId getLogId() {

@Override
public void run() {
if (lbHelper == null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment like // Workaround timer scheduled while in idle mode. This can happen from handleNotInUse() after an explicit enterIdleMode() by the user. Protecting here as other locations are a bit too subtle.

And then it'll be clear it is load-bearing when we rework things to simplify.

@dapengzhang0
Copy link
Member Author

/easycla

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 14, 2021

CLA Signed

The committers are authorized under a signed CLA.

@dapengzhang0
Copy link
Member Author

@Spikhalskiy Can you please sign the CLA?

@Spikhalskiy
Copy link

@dapengzhang0 done. Thank you for preparing the PR!

@dapengzhang0 dapengzhang0 merged commit 531db50 into grpc:master Dec 15, 2021
@dapengzhang0 dapengzhang0 deleted the issue-8714 branch December 15, 2021 01:55
@dapengzhang0
Copy link
Member Author

@Spikhalskiy Thank you for reporting the issue and providing the hot fix.

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.

None yet

3 participants