TiDB binlog修改pump节点状态信息提示error="key /tidb-binlog/v1/pumps/ip-192-168-112-101:8250 in etcd not found"

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:

【TiDB 版本】
版本:TiDB 4.0

【问题描述】
在使用binlogctl修改pump节点的状态信息时候,提示以下异常:
./bin/binlogctl -pd-urls=http://192.168.112.101:2379 -cmd update-pump -node-id ip-192-168-112-101:8250 -state paused
[2021/03/29 18:01:28.936 +08:00] [FATAL] [main.go:68] [“fail to execute command”] [command=update-pump] [error=“key /tidb-binlog/v1/pumps/ip-192-168-112-101:8250 in etcd not found”] [errorVerbose=“key /tidb-binlog/v1/pumps/ip-192-168-112-101:8250 in etcd not found\ngithub.com/pingcap/errors.NotFoundf\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/pkg/mod/github.com/pingcap/errors@v0.11.4/juju_adaptor.go:117\ github.com/pingcap/tidb-binlog/pkg/etcd.(*Client).Get\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/src/github.com/pingcap/tidb-binlog/pkg/etcd/etcd.go:100\ngithub.com/pingcap/tidb-binlog/pkg/node.(*EtcdRegistry).Node\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/src/github.com/pingcap/tidb-binlog/pkg/node/registry.go:58\ngithub.com/pingcap/tidb-binlog/binlogctl.UpdateNodeState\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/src/github.com/pingcap/tidb-binlog/binlogctl/nodes.go:69\ main.main\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/src/github.com/pingcap/tidb-binlog/cmd/binlogctl/main.go:52\ runtime.main\ \t/usr/local/go/src/runtime/proc.go:203\ runtime.goexit\ \t/usr/local/go/src/runtime/asm_amd64.s:1357”] [stack=“github.com/pingcap/log.Fatal\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/pkg/mod/github.com/pingcap/log@v0.0.0-20191012051959-b742a5d432e9/global.go:59\ main.main\ \t/home/jenkins/agent/workspace/build_tidb_binlog_master/go/src/github.com/pingcap/tidb-binlog/cmd/binlogctl/main.go:68\ runtime.main\ \t/usr/local/go/src/runtime/proc.go:203”]


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

1 Like

你这个应该是 tiup import 过来的吧,show pump status 看下正确的 node id

然后进行操作。

我也是同样的报错,show pump status查看node id 是正确的