-
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.
[#25767] DocDB: Inconsistent logic in CleanUpDeletedTables and CheckT…
…ableDeleted Summary: The final table deletion (hiding) step could be performed by one of 2 functions. Depending on race conditions it could be `CleanUpDeletedTables` or `CheckTableDeleted`. But their logic is a little bit different. `CheckTableDeleted` cleans `ysql_ddl_txn_verifier_state` and `transaction` fields in table persistent info. While `CleanUpDeletedTables` does not do it. As result, if table was deleted by `CleanUpDeletedTables`, it could fall into incorrect state. In this state we cannot perform clone on DB with such table. Fixed by moving shared logic to `PrepareTableDeletion` that is invoked by both methods. Also increased history retention interval in YbAdminSnapshotScheduleTestWithYsqlColocationRestoreParam. Jira: DB-15055 Test Plan: ./yb_build.sh release -n 40 --gtest_filter ColocationAndRestoreType/YbAdminSnapshotScheduleTestWithYsqlColocationRestoreParam.PgsqlSequenceVerifyPartialRestore/4 --cxx-test yb-admin-snapshot-schedule-test -- -p 8 Reviewers: asrivastava Reviewed By: asrivastava Subscribers: myang, ybase Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D41499
- Loading branch information
Showing
4 changed files
with
72 additions
and
55 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
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