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

Alpha Close: Wait for indexing to complete #5137

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

jarifibrahim
Copy link
Contributor

@jarifibrahim jarifibrahim commented Apr 8, 2020

Description.

The background reindexing starts indexing in the background but we do not wait for the indexing to complete while shutting down alpha. This PR fixes that issue by waiting for the background indexing to complete before we shutdown alpha.

The issue can be easily seen by adding a long sleep in the background indexing and trying to shutdown alpha. It can be seen that Alpha doesn't wait for the indexing to complete while shutting down.

GitHub Issue or Jira number.

Partially fixes #3873
See also #3873 (comment)

Affected releases.

v20.03

Changelog tags.

N/A

Please indicate if this is a breaking change.

No

Please indicate if this is an enterprise feature.

No

Please indicate if documentation needs to be updated.

No

Please indicate if end to end testing is needed.

No


This change is Reviewable

@jarifibrahim jarifibrahim marked this pull request as ready for review April 9, 2020 13:18
@jarifibrahim jarifibrahim requested review from manishrjain and a team as code owners April 9, 2020 13:18
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@martinmr martinmr 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

@jarifibrahim jarifibrahim merged commit dc75424 into master Apr 13, 2020
@jarifibrahim jarifibrahim deleted the ibrahim/fix-reindex-close branch April 13, 2020 10:43
jarifibrahim pushed a commit that referenced this pull request Jun 8, 2020
The background reindexing starts indexing in the background but we
do not wait for the indexing to complete in case of error while shutting
down alpha. This PR fixes that issue by waiting for the background
indexing to complete before we shutdown alpha. 

The issue can be easily seen by adding a long sleep in the
background indexing and trying to shutdown alpha. It can be seen
that Alpha doesn't wait for the indexing to complete while shutting
down.

Fixes #3873

(cherry picked from commit dc75424)
jarifibrahim pushed a commit that referenced this pull request Jun 9, 2020
The background reindexing starts indexing in the background but we
do not wait for the indexing to complete in case of error while shutting
down alpha. This PR fixes that issue by waiting for the background
indexing to complete before we shutdown alpha. 

The issue can be easily seen by adding a long sleep in the
background indexing and trying to shutdown alpha. It can be seen
that Alpha doesn't wait for the indexing to complete while shutting
down.

Fixes #3873

(cherry picked from commit dc75424)
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 18, 2020
The background reindexing starts indexing in the background but we
do not wait for the indexing to complete in case of error while shutting
down alpha. This PR fixes that issue by waiting for the background
indexing to complete before we shutdown alpha. 

The issue can be easily seen by adding a long sleep in the
background indexing and trying to shutdown alpha. It can be seen
that Alpha doesn't wait for the indexing to complete while shutting
down.

Fixes hypermodeinc#3873
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.

Dgraph should handle shutdown gracefully
3 participants