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(shutdown): Fix negative waitgroup error #6551

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Sep 21, 2020

Fixes DGRAPH-2466

We were calling closer.Done() twice.


This change is Reviewable

Docs Preview: Dgraph Preview

@jarifibrahim jarifibrahim requested review from manishrjain and a team as code owners September 21, 2020 21:42
Copy link
Contributor

@parasssh parasssh left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @manishrjain)

@jarifibrahim jarifibrahim merged commit 3f4624a into release/v20.03 Sep 22, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/r20.03-waitgroup branch September 22, 2020 05:57
@@ -1089,8 +1089,6 @@ func (g *groupi) askZeroForEE() bool {
// SubscribeForUpdates will listen for updates for the given group.
func SubscribeForUpdates(prefixes [][]byte, cb func(kvs *badgerpb.KVList), group uint32,
closer *z.Closer) {
defer closer.Done()

Choose a reason for hiding this comment

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

@CodeLingoBot capture z.Closer should only have Done() called once

Copy link

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants