Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#21572] docdb: Clone hidden tables from active rocksdb
Summary: When cloning to time `t`, some of the tablets which were running as of `t` might have been deleted before the snapshot covering time `t` was taken. Since we do not snapshot hidden tables, the SST files for these tablets must be hardlinked from the tablet's active rocksdb (since the tablets are hidden, there is no difference between the data in the active rocks db and the data as of `t`). Note that it is not sufficient to clone from active rocksdb for all tablets that are hidden when the clone operation starts because if a tablet **was** included in the covering snapshot, then active rocksdb is only guaranteed to contain information after the covering snapshot time. This diff adds the above functionality by keeping track of which tablets were not part of the covering snapshot, and setting the new field `clone_from_active_rocksdb` in the clone requests for those tablets. **Upgrade/Rollback safety:** Change is to an API (CloneTablet) which should not be used in any production system yet. Fixes #21572. Jira: DB-10456 Test Plan: `./yb_build.sh --cxx_test snapshot-schedule-test --gtest_filter=CloneFromScheduleTest.CloneAfterDrop` Reviewers: mhaddad Reviewed By: mhaddad Subscribers: ybase, bogdan Differential Revision: https://phorge.dev.yugabyte.com/D33922
- Loading branch information
1 parent
7cb173c
commit c295c10
Showing
11 changed files
with
240 additions
and
113 deletions.
There are no files selected for viewing
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
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
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.