Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: DM同步DDL时,secondsBehindMaster为0
[TiDB Usage Environment] Production Environment
[TiDB Version] 5.3.0
[Reproduction Path] DM synchronizes a large table from MySQL to TiDB. After executing DDL on MySQL, check the status of DM, and secondsBehindMaster is 0.
[Attachment: Screenshot/Log/Monitoring]
It seems like it hasn’t caught up, but I see that your two GTIDs are consistent.
Inconsistent, look at the front.
Check if the downstream TiDB is currently executing DDL and investigate whether the DDL status is normal. DDL 语句的执行原理及最佳实践 | PingCAP 文档中心
Use DM troubleshooting methods to locate the current logs and monitoring situation.
TiDB Data Migration 性能问题及处理方法 | PingCAP 文档中心
Check if there are any issues in the logs.