Skip to content

Commit

Permalink
ticdc: synchronize data in the new collations (#8584) (#8685)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed May 19, 2022
1 parent 9c0387c commit 125cca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions ticdc/manage-ticdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,11 +717,7 @@ To create a cyclic replication task, take the following steps:

## Output the historical value of a Row Changed Event <span class="version-mark">New in v4.0.5</span>

> **Warning:**
>
> Currently, outputting the historical value of a Row Changed Event is still an experimental feature. It is **NOT** recommended to use it in the production environment.
In the default configuration, the Row Changed Event of TiCDC Open Protocol output in a replication task only contains the changed value, not the value before the change. Therefore, the output value neither supports the [new collation framework](/character-set-and-collation.md#new-framework-for-collations) introduced in TiDB v4.0, nor can be used by the consumer ends of TiCDC Open Protocol as the historical value of a Row Changed Event.
In the default configuration, the Row Changed Event of TiCDC Open Protocol output in a replication task only contains the changed value, not the value before the change. Therefore, the output value cannot be used by the consumer ends of TiCDC Open Protocol as the historical value of a Row Changed Event.

Starting from v4.0.5, TiCDC supports outputting the historical value of a Row Changed Event. To enable this feature, specify the following configuration in the `changefeed` configuration file at the root level:

Expand All @@ -731,7 +727,11 @@ Starting from v4.0.5, TiCDC supports outputting the historical value of a Row Ch
enable-old-value = true
```

After this feature is enabled, you can see [TiCDC Open Protocol - Row Changed Event](/ticdc/ticdc-open-protocol.md#row-changed-event) for the detailed output format. The new TiDB v4.0 collation framework will also be supported when you use the MySQL sink.
This feature is enabled by default since v5.0. To learn the output format of the TiCDC Open Protocol after this feature is enabled, see [TiCDC Open Protocol - Row Changed Event](/ticdc/ticdc-open-protocol.md#row-changed-event).

## Replicate tables with the new framework for collations enabled

Starting from v4.0.15, v5.0.4, v5.1.1 and v5.2.0, TiCDC supports tables that have enabled [new framework for collations](/character-set-and-collation.md#new-framework-for-collations).

## Replicate tables without a valid index

Expand Down
2 changes: 1 addition & 1 deletion ticdc/troubleshoot-ticdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,4 @@ When the sink is TiDB or MySQL, the users of the downstream database need the fo
- `Alter`
- `Create View`

If you need to replicate `recover table` to the downstream TiDB, the `Super` permission is required.
If you need to replicate `recover table` to the downstream TiDB, you should have the `Super` permission.

0 comments on commit 125cca5

Please sign in to comment.