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(Alpha): Immediately take a snapshot if we don't have one (#6458) #6969

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

OmarAyo
Copy link
Contributor

@OmarAyo OmarAyo commented Nov 24, 2020

This PR would cause the Alpha leader to immediately trigger a snapshot creation if it doesn't already have one.

This is useful when you bring a new cluster from bulk loader. If you remove an Alpha instance and add a new Alpha instance, the new follower won't get a snapshot if the leader doesn't have one. This PR avoids that by causing the leader to get a snapshot asap.

(cherry picked from commit 6bd7f8e)


This change is Reviewable

This PR would cause the Alpha leader to immediately trigger a snapshot creation if it doesn't already have one.

This is useful when you bring a new cluster from bulk loader. If you remove an Alpha instance and add a new Alpha instance, the new follower won't get a snapshot if the leader doesn't have one. This PR avoids that by causing the leader to get a snapshot asap.

Fixes DGRAPH-2445

(cherry picked from commit 6bd7f8e)
@OmarAyo OmarAyo added the area/data-loss Issues related to loss of data. label Nov 24, 2020
@OmarAyo OmarAyo requested review from manishrjain and a team as code owners November 24, 2020 14:44
Copy link
Contributor

@danielmai danielmai 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 (waiting on @manishrjain)

@OmarAyo OmarAyo merged commit d76e722 into release/v20.03 Nov 24, 2020
@OmarAyo OmarAyo deleted the omar/snapshot-fix branch November 24, 2020 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/data-loss Issues related to loss of data.
Development

Successfully merging this pull request may close these issues.

3 participants