-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
During backup, collapse split posting lists into a single list. #4682
Conversation
Currently, the splits are preserved in a backup, this changes the output of backup to only write a single key per posting list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? The list would be split again when the database is running (and splits are enabled).
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @manishrjain)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes backup more robust. If the split logic changes, backups would still work across versions. It's fine if they end up being split again after the restore.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @manishrjain)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed SingleListRollup
to re-use l.rollup
. l.rollup
now gets passed a boolean controlling whether the split should be done.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @danielmai and @manishrjain)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests to ensure that for a split posting list, this works as expected. Picks up all the data.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @danielmai)
Splits have been re-enabled in version 1.2.1 after Jepsen tests encoutered no errors. Re-enabling splits in master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added tests.
Reviewable status: 1 of 3 files reviewed, all discussions resolved (waiting on @danielmai and @manishrjain)
Currently, the splits are preserved in a backup, this changes the output of backup to only write a single key per posting list.
Currently, the splits are preserved in a backup, this changes the output of backup to only write a single key per posting list.
Currently, the splits are preserved in a backup, this changes the
output of backup to only write a single key per posting list.
This change is
Docs Preview: