Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: TiDB 4.0.7版本的DM同步数据改动字段失败
[TiDB Usage Environment] Production Environment
[TiDB Version] tidb v4.0.7, dm v2.0.3
[Reproduction Path] When altering the table structure in the MySQL business system, changing the varchar type field from large to small causes synchronization failure.
[Problem Phenomenon and Impact]
- Problem: Changing the field length from long to short in the upstream table causes DM synchronization failure.
- Impact: Synchronization gets stuck, requiring manual adjustment of the field to consume data normally.
[Attachments: Screenshots/Logs/Monitoring]
[Actions Taken] - SET GLOBAL tidb_enable_change_column_type=1; – Not effective, prompt: Unknown system variable ‘tidb_enable_change_column_type’
- select @@tidb_enable_change_column_type; – Not effective, prompt: Unknown system variable ‘tidb_enable_change_column_type’