DM sync 同步状态正常,日志中存在类似信息,如何理解:reopen *syncer.localBinlogReader not supported

TIDB 3.0.12 + DM 1.0.4

» query-status { “result”: true, “msg”: “”, “tasks”: [ { “taskName”: “single7”, “taskStatus”: “Running”, “workers”: [ “177.90.0.XXX:8262”, “177.90.0.XX:8263”, “177.90.0.XXX:8262”, “177.30.0.XXX:8263” ] } ] }

同步状态正常,但总是有告警, 这是啥原因啊

信息: DM sync process exists with error 详情: cluster: h3cloud-cluster, instance: 177.90.0.xxx:8262, task: single7, values: 1 当前值: 1 时间: 2020-06-01 18:16:50

[2020/06/01 21:20:34.154 +08:00] [WARN] [reader.go:137] [“parse relay finished”] [task=single7] [unit=“binlog replication”] [component=“binlog reader”] [error=“parse relay log file 3303-binlog.000010 from offset 48779439 in dir /data/dm/deploy/worker3/relay_log/93a95628-763c-11ea-a323-00163e127796.000001: parse relay log file 3303-binlog.000010 from offset 0 in dir /data/dm/deploy/worker3/relay_log/93a95628-763c-11ea-a323-00163e127796.000001: context canceled”] [2020/06/01 21:20:34.154 +08:00] [INFO] [reader.go:413] [“binlog reader closed”] [task=single7] [unit=“binlog replication”] [component=“binlog reader”] [2020/06/01 21:20:34.154 +08:00] [INFO] [subtask.go:236] [“unit process returned”] [subtask=single7] [unit=Sync] [stage=Paused] [status="{“masterBinlog”:"(3303-binlog.000010, 48780802)",“syncerBinlog”:"(3303-binlog.000010, 48779439)"}"] [2020/06/01 21:20:34.154 +08:00] [ERROR] [subtask.go:255] [“unit process error”] [subtask=single7] [unit=Sync] [“error information”="{“msg”:"[code=36057:class=sync-unit:scope=internal:level=high] reopen *syncer.localBinlogReader not supported\ngithub.com/pingcap/dm/pkg/terror.(*Error).Generate\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/pkg/terror/terror.go:232\ngithub.com/pingcap/dm/syncer.(*Syncer).reopen\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:2171\ngithub.com/pingcap/dm/syncer.(*Syncer).reopenWithRetry\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:2148\ngithub.com/pingcap/dm/syncer.(*Syncer).Run\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:1246\ngithub.com/pingcap/dm/syncer.(*Syncer).Process\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:599\ngithub.com/pingcap/dm/syncer.(*Syncer).Resume\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:2320\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357",“error”:{“ErrCode”:36057,“ErrClass”:11,“ErrScope”:3,“ErrLevel”:3,“Message”:“reopen *syncer.localBinlogReader not supported”}}"] [2020/06/01 21:20:37.765 +08:00] [INFO] [worker.go:314] [“operate subtask”] [component=“worker controller”] [operation=AutoResume] [task=single7] [2020/06/01 21:20:37.766 +08:00] [INFO] [task_checker.go:365] [“dispatch auto resume task”] [component=“task checker”] [task=single7] [opLogID=738] [2020/06/01 21:20:38.765 +08:00] [INFO] [worker.go:793] [“start to execute operation”] [component=“worker controller”] [oplog="{“id”:738,“task”:{“op”:6,“name”:“single7”},“ts”:1591017637765937847}"]

能否上传一段时间的 dm-worker 日志,多谢。 感觉是中断后,重连成功了。

xxx.log (2.3 MB)

这个报错是 sync 在读取 relay log 时, 上游并没有数据写入,所以没有产生 relay log,没有数据可读取,产生的报错,等上游有数据写入时,就会恢复。您可以忽略这个报错,之后版本已经计划取消此日志打印,多谢。

这样的话,那我可以吧这个告警项取消掉了吧

针对这种 error 报错可以取消,多谢