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

doc(restore): add docs for mutations in between incremental restores #8908

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

mangalaman93
Copy link
Contributor

@mangalaman93 mangalaman93 commented Jul 18, 2023

If we do mutations in between incremental restores, those will get lost. The next incremental restore will overwrite any data that is written in between two incremental restores. It is not very useful to try to block the next incremental restore after in between mutations because it is really hard to detect that a change was made.

For example, let's say we detect the mutations done in between two incremental restores by looking at the data in memtable. But then, if we restart Dgraph, or drop any other attribute (predicate), that may end up doing compaction and would persist all the data from memtable to sstables. This would make it impossible to figure out that a change was made.

It wouldn't be very useful to store this information (that a mutation was done) in an in memory flag either. It would get destroyed if the alpha restarts. Any other methodology seems too complex to me. I think I'd rather keep the semantics of the incremental restore to say that it will overwrite any in between mutations that are done if any.

Closes: DGRAPHCORE-276
Docs: WIP

@dgraph-bot dgraph-bot added area/testing Testing related issues area/core internal mechanisms go Pull requests that update Go code labels Jul 18, 2023
@mangalaman93 mangalaman93 changed the title doc(restore): add docs for mutations in between incremental restore doc(restore): add docs for mutations in between incremental restores Jul 18, 2023
harshil-goel
harshil-goel previously approved these changes Jul 18, 2023
If we do mutations in between incremental restores, those will
get lost. The next incremental restore will overwrite any data
that is written in between two incremental restores.
@mangalaman93 mangalaman93 merged commit 2594ccc into main Jul 18, 2023
11 checks passed
@mangalaman93 mangalaman93 deleted the aman/incre-debug branch July 18, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core internal mechanisms area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

4 participants