-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ticdc: Add a description of the compatibility between BR and Lightning (
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,7 +266,19 @@ When upstream write traffic is at peak hours, the downstream may fail to consume | |
|
||
## Why does replication using TiCDC stall or even stop after data restore using TiDB Lightning and BR from upstream? | ||
|
||
Currently, TiCDC is not yet fully compatible with TiDB Lightning and BR. Therefore, please avoid using TiDB Lightning and BR on tables that are replicated by TiCDC. | ||
Currently, TiCDC is not yet fully compatible with TiDB Lightning and BR. Therefore, avoid using TiDB Lightning and BR on tables that are replicated by TiCDC. Otherwise, unknown errors might occur, such as TiCDC replication getting stuck, a significant spike in replication latency, or data loss. | ||
|
||
If you need to use TiDB Lightning or BR to restore data for some tables replicated by TiCDC, take these steps: | ||
|
||
1. Remove the TiCDC replication task related to these tables. | ||
|
||
2. Use TiDB Lightning or BR to restore data separately in the upstream and downstream clusters of TiCDC. | ||
|
||
3. After the restoration is complete and data consistency between the upstream and downstream clusters is verified, create a new TiCDC replication task for incremental replication, with the timestamp (TSO) from the upstream backup as the `start-ts` for the task. For example, assuming the snapshot timestamp of the BR backup in the upstream cluster is `431434047157698561`, you can create a new TiCDC replication task using the following command: | ||
|
||
```shell | ||
cdc cli changefeed create -c "upstream-to-downstream-some-tables" --start-ts=431434047157698561 --sink-uri="mysql://[email protected]:4000? time-zone=" | ||
``` | ||
|
||
## After a changefeed resumes from pause, its replication latency gets higher and higher and returns to normal only after a few minutes. Why? | ||
|
||
|
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