-
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.
[#22479] docdb: Pass epoch through DB cloning calls
Summary: Previously, the `CloneStateManager`'s `Upsert` function just used the catalog manager leader term. This incorrectly handled master failover and failback (e.g. we might "unabort" a clone). This diff attaches the initial LeaderEpoch from the request to the clone state and uses it for all upserts. On failover, we set the epoch to the current epoch so we can abort the task, however. Fixes #22479. Jira: DB-11395 Test Plan: Existing tests. Reviewers: zdrudi Reviewed By: zdrudi Subscribers: mhaddad, ybase Differential Revision: https://phorge.dev.yugabyte.com/D36487
- Loading branch information
1 parent
19ab966
commit 835e30d
Showing
7 changed files
with
110 additions
and
88 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
Oops, something went wrong.