DM新添加的任务,无法同步,删除/data1(部署之后按实例生成的) 目录之后, flush local meta: open /data1/dm_worker/relay_log/xx no such file or directory

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:v1.0.4
  • 【问题描述】:

M新添加的任务,无法同步,删除/data1(部署之后按实例生成的) 目录之后, flush local meta: open /data1/dm_worker/relay_log/xx no such file or directory

[2020/03/23 17:37:14.931 +08:00] [ERROR] [relay.go:650] [“flush checkpoint”] [component=“relay log”] [error="[code=30006:class=relay-unit:scope=internal:level=high] flushlocal meta: open /data1/dm_worker/relay_log/a8cd9d3c-8a73-11e8-a93f-00163e08df50.000001/relay.meta124188106: no such file or directory"] [errorVerbose="[code=30006:class=relay-unit:scope=internal:level=high] flush local meta: open /data1/dm_worker/relay_log/a8cd9d3c-8a73-11e8-a93f-00163e08df50.000001/relay.meta124188106: no such file or directory\ngithub.com/pingcap/dm/pkg/terror.(*Error).Delegate\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/pkg/terror/terror.go:267\ngithub.com/pingcap/dm/relay.(*LocalMeta).doFlush\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/relay/meta.go:246\ngithub.com/pingcap/dm/relay.(*LocalMeta).Flush\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/relay/meta.go:227\ngithub.com/pingcap/dm/relay.(*Relay).stopSync\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/relay/relay.go:649\ngithub.com/pingcap/dm/relay.(*Relay).Close\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/relay/relay.go:670\ngithub.com/pingcap/dm/dm/worker.(*realRelayHolder).Close\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/relay.go:158\ngithub.com/pingcap/dm/dm/worker.(*Worker).Close\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/worker.go:215\ngithub.com/pingcap/dm/dm/worker.(*Server).Close\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/dm/worker/server.go:143\nmain.main.func2\n\t/home/jenkins/agent/workspace/build_dm_master/go/src/github.com/pingcap/dm/cmd/dm-worker/main.go:73\nruntime.goexit\n\t/usr/local/go/src/runti

me/asm_amd64.s:1357"]

若提问为性能优化、故障排查类问题,请下载脚本运行。终端输出的打印结果,请务必全选并复制粘贴上传。

我尝试过去重新建立了这个目录,但是无法识别。

请按如下操作恢复,如下:

  1. 停止 dm-worker 进程
  2. 创建目录
  3. 重启 dm-woker 进程

好的,已解决!谢谢!

:ok_hand: