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 up predicate snapshot #2487

Merged
merged 10 commits into from
Jul 14, 2018
Merged

Fix up predicate snapshot #2487

merged 10 commits into from
Jul 14, 2018

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jul 14, 2018

Fix up both the way we create a snapshot and the way we stream it. Make the logic robust and add tests to ensure that the calculation of snapshot is right.

Streaming no longer needs to worry about min_ts. We no longer send a snapshot upfront. Raft would request it as it desires, and the follower sends the snapshot details it needs from the leader. The leader in turn checks if its snapshot matches with what the follower wants. This is a better logic, but not entirely foolproof (comment in predicate.go explains).

Bring in Badger changes, which add a DropAll method, which is called before applying the snapshot.


This change is Reviewable

@manishrjain manishrjain merged commit ea1f544 into master Jul 14, 2018
@manishrjain manishrjain deleted the mrjn/snapshot-stream branch July 14, 2018 02:28
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 19, 2019
Fix up both the way we create a snapshot and the way we stream it. Make the logic robust and add tests to ensure that the calculation of snapshot is right.

Streaming no longer needs to worry about `min_ts`. We no longer send a snapshot upfront. Raft would request it as it desires, and the follower sends the snapshot details it needs from the leader. The leader in turn checks if its snapshot matches with what the follower wants. This is a better logic, but not entirely foolproof (comment in predicate.go explains).

Bring in Badger changes, which add a `DropAll` method, which is called before applying the snapshot.
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.

1 participant