Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 从小数据量 MySQL 迁移数据到 TiDB 启动迁移任务报错
【TiDB Usage Environment】Production\Test Environment\POC
【TiDB Version】5.4
【Encountered Issue】Unexpected termination error when using dmctl to synchronize data
【Reproduction Path】tiup dmctl --master-addr 172.21.0.5:8261 start-task --remove-meta task1.yaml
task1.yaml
【Issue Phenomenon and Impact】
Error occurs when synchronizing around 100,000 rows
Log error information
[2022/06/21 15:34:50.817 +08:00] [WARN] [writer_util.go:181] [“fail to dumping table(chunk), will revert some metrics and start a retry if possible”] [task=test] [unit=dump] [database=news] [table=totalnews] [“finished rows”=9510] [“finished size”=10625668] [error=“invalid connection”]
【Attachments】
- Relevant logs, configuration files, Grafana monitoring (https://metricstool.pingcap.com/)
- TiUP Cluster Display information
- TiUP Cluster Edit config information
- TiDB-Overview monitoring
- Corresponding module’s Grafana monitoring (such as BR, TiDB-binlog, TiCDC, etc.)
- Corresponding module logs (including logs one hour before and after the issue)
If the question is related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.