-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a new RPC, similar to ClearRange except with the addition of a time-range filter, for clearing revisions of keys within the passed span that fall within the passed time range, effectively "reverting" those writes. Note however that this isn't a quite a true, generalized "revert" op yet since older revisions of some keys might have been cleared by GC in the meantime, meaning that using this to clear the newer revisions does not cause a scan to observe the older values (but instead that scan would now see no value). A future change could introduce a "revert window" setting like the GC TTL that controls when a key can be GC'ed, in this case only allowing GC of a key when the key covering it is older than the revert window (in addition to the key itself being older than the existing GC TTL). This could then ensure that this RPC would always be able to revert the range to any time in the revert window at which point it could include a check that the requested time was valid. However that is left to a future change. The immediate need for this RPC is rolling back a failed partial bulk ingestion during IMPORT INTO, during which only new keys are added and might need to be reverted, so there are no prior revisions to worry about. Release note: none.
- Loading branch information
Showing
11 changed files
with
3,921 additions
and
1,644 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.