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

Fix expiration handling to not leak goroutines #5506

Merged
merged 2 commits into from
Oct 13, 2018

Conversation

viveklak
Copy link

Potential fix for #5505

@@ -102,6 +102,7 @@ func expireLeaseStrategyRevoke(ctx context.Context, m *ExpirationManager, le *le
case <-ctx.Done():
case <-m.quitCh:
cancel()
case <-revokeCtx.Done():
Copy link
Member

Choose a reason for hiding this comment

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

This seems right but should probably then also put cancel() calls into each of the select cases below.

@jefferai jefferai added this to the 0.12 milestone Oct 12, 2018
Copy link
Contributor

@briankassouf briankassouf left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

@briankassouf briankassouf merged commit ad9295a into hashicorp:master Oct 13, 2018
@jefferai jefferai modified the milestones: 0.12, 0.11.4 Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants