-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#21054] docdb: Add ABORTED state to clone state manager
Summary: This diff adds the `ABORTED` state and an `abort_message` field to the `SysCloneStateInfoPB` object. A clone is moved to the `ABORTED` state if it fails some step of the cloning processes, or if it was incomplete (not `ABORTED` or `RESTORED`) upon a master failover. There is currently no timeout behavior for clones stuck in tablet creation or the restoring state. Aborted clones do not currently clean up their namespace; this is left to the user. Aborted clones do not block clones to a different target namespace. **Upgrade/Rollback safety:** Only touches a non-production protobuf, guarded by `FLAGS_enable_db_clone`. Jira: DB-10021 Test Plan: ``` ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortInStartTabletsCloning ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortIfFailToSchedulePgCloneSchema ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortInPgSchemaClone ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortInStartTabletsCloningPg ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortInCreatingState ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortInRestoringState ./yb_build.sh --cxx-test clone_state_manager-test --gtest_filter CloneStateManagerTest.AbortIncompleteCloneOnLoad ``` Reviewers: mhaddad Reviewed By: mhaddad Subscribers: ybase, bogdan Differential Revision: https://phorge.dev.yugabyte.com/D32999
- Loading branch information
1 parent
517e474
commit 76fe86d
Showing
5 changed files
with
291 additions
and
60 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.