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 wait reused while disabling compactions #9141

Merged
merged 1 commit into from
Nov 22, 2017
Merged

Fix wait reused while disabling compactions #9141

merged 1 commit into from
Nov 22, 2017

Conversation

jwilder
Copy link
Contributor

@jwilder jwilder commented Nov 20, 2017

This fixes the re-use of the WaitGroup while one goroutine is still Waiting when disabling compactions. Unfortunately, I have not found a simpler way to implement this that still maintains the same behavior as the current code. The tests do reproduce the panic reliably and these changes prevent the panic from occurring.

Fixes #9109

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Sign CLA (if not already signed)

@jwilder jwilder requested a review from e-dard November 20, 2017 22:17
@ghost ghost assigned jwilder Nov 20, 2017
@ghost ghost added the review label Nov 20, 2017
Copy link
Contributor

@e-dard e-dard left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jwilder jwilder merged commit d526b82 into master Nov 22, 2017
@ghost ghost removed the review label Nov 22, 2017
@jwilder jwilder deleted the jw-waitgroup branch November 22, 2017 17:54
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.

[Bug] occasional crashes in v1.3.7: "panic: sync: WaitGroup is reused before previous Wait has returned"
2 participants