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(Zero): Fix how Zero snapshots and purge works #7096

Merged
merged 6 commits into from Dec 10, 2020
Merged

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Dec 9, 2020

Zero snapshots were being calculated in a round about way. This got worse due to a recent bug introduction, which caused Zeros to not get snapshots if we don't purge keyCommits.

This PR make Zero leader calculate the snapshots based on the checkpoints from Alpha leaders (instead of their snapshots). It then proposes this snapshot to the Zero group, causing all members to create snapshot and purge keyCommit map at the same time.


This change is Reviewable

@netlify
Copy link

netlify bot commented Dec 9, 2020

✔️ Deploy preview for dgraph-docs ready!

🔨 Explore the source changes: 065c66a

🔍 Inspect the deploy logs: https://app.netlify.com/sites/dgraph-docs/deploys/5fd163c87fd4d60007415e68

😎 Browse the preview: https://deploy-preview-7096--dgraph-docs.netlify.app

@manishrjain manishrjain merged commit 5efdfbf into master Dec 10, 2020
@manishrjain manishrjain deleted the mrjn/zero branch December 10, 2020 00:10
NamanJain8 added a commit that referenced this pull request Dec 17, 2020
…ero snapshot (#7143)

In zero's raftwal meta, we used to store MembershipState only. The changes in #7096 made it store ZeroSnapshot. Index and CheckpointTs actually need not be stored.
This PR makes raftwal meta store only MembershipState.

Co-authored-by: Manish R Jain <manish@dgraph.io>
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.

None yet

1 participant