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(restore): allow incrementalFrom to be 1 in restore API #8988

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

mangalaman93
Copy link
Contributor

@mangalaman93 mangalaman93 commented Sep 2, 2023

This is a minor inconvenience while using the incremental restore API that when incrementalFrom is set to 1, we throw an error back. The restore API takes two backup numbers incrementalFrom & backupNum and restores all the backups including both the ends, i.e. following set notation all the backups in the set [incrementalFrom, backupNum] are restored. This should work fine when incrementalFrom is set to 1 which is a full backup.

@dgraph-bot dgraph-bot added area/testing Testing related issues area/core internal mechanisms go Pull requests that update Go code labels Sep 2, 2023
kevinmingtarja
kevinmingtarja previously approved these changes Sep 4, 2023
kevinmingtarja
kevinmingtarja previously approved these changes Sep 13, 2023
This is a minor inconvenience while using the incremental restore
API that when incrementalFrom is set to 1, we throw an error back.
The restore API takes a from backup number (incrementalFrom) and a
to backup number (backupNum) and restores all the backups including
both the ends, i.e. following set notation all the backups in the
set [incrementalFrom, backupNum] are restored. This should work
fine when incrementalFrom is set to 1 which is a full backup.
Copy link
Contributor

@kevinmingtarja kevinmingtarja left a comment

Choose a reason for hiding this comment

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

LGTM

@mangalaman93 mangalaman93 merged commit 266c8d6 into main Sep 15, 2023
11 checks passed
@mangalaman93 mangalaman93 deleted the aman/restore branch September 15, 2023 12:47
shivaji-kharse pushed a commit that referenced this pull request Mar 12, 2024
This is a minor inconvenience while using the incremental restore API
that when incrementalFrom is set to 1, we throw an error back. The
restore API takes two backup numbers incrementalFrom & backupNum and
restores all the backups including both the ends, i.e. following set
notation all the backups in the set [incrementalFrom, backupNum] are
restored. This should work fine when incrementalFrom is set to 1 which
is a full backup.
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