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

使用etcd注册服务,运行一会手动结束几乎百分百会报错 #951

Closed
Owen-Zhang opened this issue Dec 21, 2020 · 5 comments
Closed
Assignees

Comments

@Owen-Zhang
Copy link

错误信息如下:

panic: sync: negative WaitGroup counter

goroutine 181 [running]:
sync.(*WaitGroup).Add(0xc000074030, 0xffffffffffffffff)
c:/go/src/sync/waitgroup.go:74 +0x140
sync.(*WaitGroup).Done(...)
c:/go/src/sync/waitgroup.go:99
github.com/apache/dubbo-go/registry/etcdv3.(*configurationListener).Close(0xc00048a020)
D:/Code/golang/src/dubbo-go-read/registry/etcdv3/listener.go:123 +0x44
github.com/apache/dubbo-go/registry.(*BaseRegistry).Subscribe(0xc000074000, 0xc0002ac300, 0xf70740, 0xc00053e390, 0x0, 0x0)
D:/Code/golang/src/dubbo-go-read/registry/base_registry.go:413 +0x36a
created by github.com/apache/dubbo-go/registry/protocol.(*registryProtocol).Export
D:/Code/golang/src/dubbo-go-read/registry/protocol/protocol.go:215 +0x728
exit status 2

@Owen-Zhang
Copy link
Author

dubbo-go-read 是我本地clone下来的代码文件目录

@Owen-Zhang
Copy link
Author

而且出现异常后,注册中心的节点没有删除,只有等其自动过期

@watermelo
Copy link
Member

@Owen-Zhang 是否有调用的例子,以及用的那个dubbo-go版本

@JiaLiangoooo
Copy link

JiaLiangoooo commented Dec 27, 2020

version:v1.5.5-rc1

image
image
image
image

最终程序跑完后,sync.waitGroup 是负数.

@watermelo watermelo self-assigned this Jan 17, 2021
watermelo added a commit to watermelo/dubbo-go that referenced this issue Jan 23, 2021
AlexStocks added a commit that referenced this issue Jan 24, 2021
@watermelo
Copy link
Member

@Owen-Zhang @JiaLiangoooo 已修复

AlexStocks pushed a commit that referenced this issue Apr 14, 2021
AlexStocks added a commit that referenced this issue Apr 14, 2021
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

No branches or pull requests

3 participants