From 65563d29f89ed0a5a78e5f1843bc392f11df9e3a Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 29 Oct 2024 17:59:50 +0800 Subject: [PATCH 1/5] Add temp.md --- temp.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 temp.md diff --git a/temp.md b/temp.md new file mode 100644 index 0000000000000..af27ff4986a7b --- /dev/null +++ b/temp.md @@ -0,0 +1 @@ +This is a test file. \ No newline at end of file From 5bc4ca0637394604f831402af08ebc8aa2a75c67 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 29 Oct 2024 17:59:55 +0800 Subject: [PATCH 2/5] Delete temp.md --- temp.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 temp.md diff --git a/temp.md b/temp.md deleted file mode 100644 index af27ff4986a7b..0000000000000 --- a/temp.md +++ /dev/null @@ -1 +0,0 @@ -This is a test file. \ No newline at end of file From 13fe787f8e9f8b8f59834977c19fbd27560e23f7 Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 29 Oct 2024 18:19:34 +0800 Subject: [PATCH 3/5] add translation --- ticdc/ticdc-bidirectional-replication.md | 14 ++++++++++++++ ticdc/ticdc-changefeed-config.md | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/ticdc/ticdc-bidirectional-replication.md b/ticdc/ticdc-bidirectional-replication.md index 09d5252fc00fa..4e6d161e77693 100644 --- a/ticdc/ticdc-bidirectional-replication.md +++ b/ticdc/ticdc-bidirectional-replication.md @@ -99,6 +99,20 @@ In short, in BDR mode, TiCDC only replicates replicable DDLs in the PRIMARY clus ### Replication scenarios of replicable DDLs 1. Choose a TiDB cluster and execute `ADMIN SET BDR ROLE PRIMARY` to set it as the primary cluster. + + ```sql + ADMIN SET BDR ROLE PRIMARY; + Query OK, 0 rows affected + Time: 0.003s + + ADMIN SHOW BDR ROLE; + +----------+ + | BDR_ROLE | + +----------+ + | primary | + +----------+ + ``` + 2. On other TiDB clusters, execute `ADMIN SET BDR ROLE SECONDARY` to set them as the secondary clusters. 3. Execute **replicable DDLs** on the primary cluster. The successfully executed DDLs will be replicated to the secondary clusters by TiCDC. diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index 7859499cbe7e2..bce802da1403a 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -74,6 +74,11 @@ case-sensitive = false # The format of this parameter is "h m s", for example, "1h30m30s". changefeed-error-stuck-duration = "30m" +# The default value is false, indicating that bi-directional replication (BDR) mode is not enabled. +# To set up BDR clusters using TiCDC, modify this parameter to `true` and configure the TiDB clusters to BDR mode. +# For more information, see https://docs.pingcap.com/zh/tidb/stable/ticdc-bidirectional-replication. +# bdr-mode = false + [mounter] # The number of threads with which the mounter decodes KV data. The default value is 16. # worker-num = 16 From 77ded7fda5d9e97f7c3fe5851c5218d3ae54c61d Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 29 Oct 2024 18:21:49 +0800 Subject: [PATCH 4/5] Update ticdc/ticdc-changefeed-config.md --- ticdc/ticdc-changefeed-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index bce802da1403a..f90e732c8fd4c 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -75,7 +75,7 @@ case-sensitive = false changefeed-error-stuck-duration = "30m" # The default value is false, indicating that bi-directional replication (BDR) mode is not enabled. -# To set up BDR clusters using TiCDC, modify this parameter to `true` and configure the TiDB clusters to BDR mode. +# To set up BDR clusters using TiCDC, modify this parameter to `true` and set the TiDB clusters to BDR mode. # For more information, see https://docs.pingcap.com/zh/tidb/stable/ticdc-bidirectional-replication. # bdr-mode = false From 030c2e97c7352431c9bbcdf395c7d7de31f3ed0b Mon Sep 17 00:00:00 2001 From: Grace Cai Date: Tue, 29 Oct 2024 18:23:32 +0800 Subject: [PATCH 5/5] Update ticdc/ticdc-changefeed-config.md --- ticdc/ticdc-changefeed-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ticdc/ticdc-changefeed-config.md b/ticdc/ticdc-changefeed-config.md index f90e732c8fd4c..39a508c190b82 100644 --- a/ticdc/ticdc-changefeed-config.md +++ b/ticdc/ticdc-changefeed-config.md @@ -76,7 +76,7 @@ changefeed-error-stuck-duration = "30m" # The default value is false, indicating that bi-directional replication (BDR) mode is not enabled. # To set up BDR clusters using TiCDC, modify this parameter to `true` and set the TiDB clusters to BDR mode. -# For more information, see https://docs.pingcap.com/zh/tidb/stable/ticdc-bidirectional-replication. +# For more information, see https://docs.pingcap.com/tidb/stable/ticdc-bidirectional-replication. # bdr-mode = false [mounter]