Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动dubbo-go 服务过段时间zk的监听会报错,但是貌似不影响服务调用 #734

Closed
jack15083 opened this issue Sep 3, 2020 · 1 comment · Fixed by #735

Comments

@jack15083
Copy link
Contributor

What happened:
2020-09-03T17:33:28.149+0800 ?[31mERROR?[0m zookeeper/client.go:589 zk.Children(path{}) = error(zk: invalid path)
github.com/apache/dubbo-go/common/logger.Errorf
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/common/logger/logging.go:52
github.com/apache/dubbo-go/remoting/zookeeper.(*ZookeeperClient).GetChildren
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/client.go:589
github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).handleZkNodeEvent
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:135
github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).listenDirEvent
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:325
github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).ListenServiceEvent.func1
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:357
2020-09-03T17:33:28.150+0800 ?[31mERROR?[0m zookeeper/listener.go:146 path{} child nodes changed, zk.Children() = error{zk.Children(path:): zk: invalid path}
github.com/apache/dubbo-go/common/logger.Errorf
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/common/logger/logging.go:52
github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).handleZkNodeEvent
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:146
github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).listenDirEvent
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:325
github.com/apache/dubbo-go/remoting/zookeeper.(*ZkEventListener).ListenServiceEvent.func1
C:/Users/MST/go/pkg/mod/github.com/apache/[email protected]/remoting/zookeeper/listener.go:357

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

@jack15083
Copy link
Contributor Author

jack15083 commented Sep 4, 2020

通过查看源吗我知道是什么问题了,感觉是有段代码有bug,希望尽快确认下

zkEvent 在没有childEventCh输入时,zkEvent.path为空,定时器的任务还在执行,导致每隔10分钟就会有上面的报错 zk: invalid path

代码位置remoting/zookeeper/listener.go 325行

image

@wenxuwan wenxuwan mentioned this issue Sep 4, 2020
@zouyx zouyx linked a pull request Sep 4, 2020 that will close this issue
AlexStocks added a commit that referenced this issue Sep 6, 2020
zouyx added a commit to zouyx/dubbo-go that referenced this issue Sep 22, 2020
AlexStocks pushed a commit that referenced this issue Apr 14, 2021
Malvin666 pushed a commit to Malvin666/dubbo-go that referenced this issue Jun 8, 2021
tangzhenhuang added a commit to tangzhenhuang/mosn-pkg that referenced this issue Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants