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

release/v20.03 - Alpha: Gracefully shutdown ludicrous mode (#5561) #5584

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Jun 5, 2020

Fixes - DGRAPH-1353

When live loader in running on an Alpha in ludicrous mode, alpha will
crash with a segmentation fault error because badger was closed before
ludicrous mode goroutines were stopped. This PR fixed that issue.

The crash can be reproduced by

1. dgraph zero --ludicrous_mode
2. dgraph alpha --ludicrous_mode --enable_sentry=false
3. dgraph live -f $GOPATH/src/github.com/dgraph-io/benchmarks/data/21million.rdf.gz \
-s $GOPATH/src/github.com/dgraph-io/benchmarks/data/21million.schema \
-z localhost:5080 -a localhost:9080 --ludicrous_mode

Hit <CTRL+C> while alpha is receiving data from live loader.

(cherry picked from commit e326b9e)


This change is Reviewable

Docs Preview: Dgraph Preview

Fixes - DGRAPH-1353

When live loader in running on an Alpha in ludicrous mode, alpha will
crash with a segmentation fault error because badger was closed before
ludicrous mode goroutines were stopped. This PR fixed that issue.

The crash can be reproduced by
```
1. dgraph zero --ludicrous_mode
2. dgraph alpha --ludicrous_mode --enable_sentry=false
3. dgraph live -f $GOPATH/src/github.com/dgraph-io/benchmarks/data/21million.rdf.gz \
-s $GOPATH/src/github.com/dgraph-io/benchmarks/data/21million.schema \
-z localhost:5080 -a localhost:9080 --ludicrous_mode

Hit <CTRL+C> while alpha is receiving data from live loader.
```

(cherry picked from commit e326b9e)
@jarifibrahim jarifibrahim requested review from manishrjain and a team as code owners June 5, 2020 09:25
Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @manishrjain)

@jarifibrahim jarifibrahim merged commit b11f090 into release/v20.03 Jun 8, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/r20.03-l-shutdown branch June 8, 2020 11:53
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.

2 participants