TiDB has a transaction timeout mechanism. When a transaction runs for a period longer than max-txn-ttl
, TiDB forcibly rolls it back. TiCDC waits for the transaction to be committed before proceeding with the replication, which causes replication delay.