-
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.
[#26093] xClusterDDLRepl: Add in-memory safeguard on target for repea…
…ted failed DDLs Summary: To prevent cases of the ddl_queue handler repeatedly failing the same DDL on the target, this diff adds a guardrail to pause replication in case we fail the same DDL more than xcluster_ddl_queue_max_retries_per_ddl times (default 5). This state is kept in memory in the ddl_queue poller, and upon reaching the limit, will stop that poller from processing any more DDLs. Once the DDL is manually fixed, replication can be resumed by recreating the ddl_queue poller (eg, leader stepdown of ddl_queue, pause+resume of replication group). Jira: DB-15425 Test Plan: ``` ybd --cxx-test xcluster_ddl_replication-test --gtest_filter "XClusterDDLReplicationTest.PauseTargetOnRepeatedFailures" ``` Reviewers: xCluster, hsunder, slingam Reviewed By: slingam Subscribers: ybase, yql, hsunder Differential Revision: https://phorge.dev.yugabyte.com/D42244
- Loading branch information
Showing
6 changed files
with
115 additions
and
11 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
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