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

服务启用race检测出现data race #741

Open
yeqiaojun opened this issue Apr 7, 2024 · 0 comments
Open

服务启用race检测出现data race #741

yeqiaojun opened this issue Apr 7, 2024 · 0 comments

Comments

@yeqiaojun
Copy link

WARNING: DATA RACE
Read at 0x00c000296928 by goroutine 71:
github.com/nacos-group/nacos-sdk-go/v2/common/remote/rpc.(*RpcClient).notifyConnectionEvent()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/common/remote/rpc/rpc_client.go:382 +0x13d
github.com/nacos-group/nacos-sdk-go/v2/common/remote/rpc.(*RpcClient).Start.func1()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/common/remote/rpc/rpc_client.go:177 +0x1af

Previous write at 0x00c000296928 by goroutine 72:
github.com/nacos-group/nacos-sdk-go/v2/common/remote/rpc.(*RpcClient).reconnect()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/common/remote/rpc/rpc_client.go:344 +0x1066
github.com/nacos-group/nacos-sdk-go/v2/common/remote/rpc.(*RpcClient).Start.func2()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/common/remote/rpc/rpc_client.go:204 +0x8ac

Goroutine 71 (running) created at:
github.com/nacos-group/nacos-sdk-go/v2/common/remote/rpc.(*RpcClient).Start()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/common/remote/rpc/rpc_client.go:173 +0x144
github.com/nacos-group/nacos-sdk-go/v2/clients/naming_client/naming_grpc.NewNamingGrpcProxy()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/clients/naming_client/naming_grpc/naming_grpc_proxy.go:72 +0x769
github.com/nacos-group/nacos-sdk-go/v2/clients/naming_client.NewNamingProxyDelegate()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/clients/naming_client/naming_proxy_delegate.go:64 +0xd44
github.com/nacos-group/nacos-sdk-go/v2/clients/naming_client.NewNamingClient()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/clients/naming_client/naming_client.go:78 +0xb70
github.com/nacos-group/nacos-sdk-go/v2/clients.NewNamingClient()
/root/go/pkg/mod/github.com/nacos-group/nacos-sdk-go/[email protected]/clients/client_factory.go:61 +0x1bb

What version of nacos-sdk-go are you using?

v 2.2.5

What version of nacos-sever are you using?

阿里云mse nacos v 2.2.3.1

What version of Go are you using (go version)?

1.22

What operating system (Linux, Windows, …) and version?

linux

What did you do?

If possible, provide a recipe for reproducing the error.

What did you expect to see?

What did you see instead?

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

1 participant