-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#9343] ybase: PITR Fix VerifyRestoredObjects logic
Summary: After restoration is complete, when we verify if Restoration completed properly, we currently match the RUNNING tables (and corresponding tablets/namespaces) against all the objects that should have been restored. This is incorrect and leads to failures for instance for objects that were deleted even before the restoration time. There are several scenarios that can cause this. For e.g. 1. Create a table 2. Drop the table 3. Create another table 4. Restore before 4 and after 3 Another scenario: 1. Create a table 2. Drop the table 3. Wait for snapshot schedule retention time so that the table gets deleted 4. Create another table 5. Restore before 4 and after 3 Another scenario: 1. Create table 2. Restore before create table 3. Create another table 4. Restore before 3 and after 2 Test Plan: ybd --cxx_test yb-admin-snapshot-schedule-test YbAdminSnapshotScheduleTest.TestVerifyRestorationLogic Reviewers: bogdan, sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D12556
- Loading branch information
1 parent
5ad090f
commit 68dcd38
Showing
2 changed files
with
77 additions
and
2 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