TiDB's synchronization architecture through binlog frequently stops syncing

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB 通过binlog 的同步架构经常停止同步

| username: ablewang_xiaobo

【TiDB Usage Environment】Production Environment
【TiDB Version】v4.0.9
【Encountered Problem】When synchronizing the TiDB database to another TiDB cluster, synchronization frequently stops. Both pump and drainer services are normal, and no errors are found in the logs.
【Reproduction Path】Restarting pump and drainer does not solve the problem
【Problem Phenomenon and Impact】

【Attachments】


| username: ablewang_xiaobo | Original post link

There have been two previous instances where synchronization stopped, with the situation being almost the same as above. Previously, the issue was resolved by reconstructing the synchronization, but it feels quite troublesome to do this every time.

| username: ablewang_xiaobo | Original post link

Currently, it cannot be determined that the above reason caused the synchronization to stop.

| username: cs58_dba | Original post link

Two TiDB clusters have different versions?

| username: ablewang_xiaobo | Original post link

The versions are the same.

| username: ablewang_xiaobo | Original post link

Found the reason, it was caused by some tables not having primary keys, which led to the interruption.

| username: cs58_dba | Original post link

The log message does indicate that.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.