[问题描述]
[2020/06/02 00:20:49.127 +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/02 00:20:49.128 +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\
github.com/pingcap/dm/pkg/terror.(*Error).Generate\
\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/pkg/terror/terror.go:232\
github.com/pingcap/dm/syncer.(*Syncer).reopen\
\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:2171\
github.com/pingcap/dm/syncer.(*Syncer).reopenWithRetry\
\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:2148\
github.com/pingcap/dm/syncer.(*Syncer).Run\
\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:1246\
github.com/pingcap/dm/syncer.(*Syncer).Process\
\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:599\
github.com/pingcap/dm/syncer.(*Syncer).Resume\
\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/syncer/syncer.go:2320\
runtime.goexit\
\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"}}”]
[解决方案]
- 这个报错是 sync 在读取 relay log 时, 上游并没有数据写入,所以没有产生 relay log,没有数据可读取,产生的报错,等上游有数据写入时,就会恢复。
- 可以忽略这个报错,之后版本已经计划取消此日志打印