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

fix data race #1115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix data race #1115

wants to merge 1 commit into from

Conversation

Littleiii
Copy link

What is the purpose of the change

fix data race

Previous read at 0x00c00013bd08 by goroutine 129:
github.com/apache/rocketmq-client-go/v2/internal.(*rmqClient).InvokeSync()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/internal/client.go:576 +0x95
github.com/apache/rocketmq-client-go/v2/consumer.(*defaultConsumer).findConsumerList()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/consumer/consumer.go:952 +0x25b
github.com/apache/rocketmq-client-go/v2/consumer.(*defaultConsumer).doBalance.func1()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/consumer/consumer.go:393 +0x164
sync.(*Map).Range()
/usr/local/Cellar/go/1.19/libexec/src/sync/map.go:354 +0x225
github.com/apache/rocketmq-client-go/v2/consumer.(*defaultConsumer).doBalance()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/consumer/consumer.go:370 +0x56
github.com/apache/rocketmq-client-go/v2/consumer.(*defaultConsumer).doBalanceIfNotPaused()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/consumer/consumer.go:366 +0x117
github.com/apache/rocketmq-client-go/v2/consumer.(*pushConsumer).RebalanceIfNotPaused()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/consumer/push_consumer.go:335 +0x3d
github.com/apache/rocketmq-client-go/v2/internal.(*rmqClient).RebalanceIfNotPaused.func1()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/internal/client.go:879 +0x48
sync.(*Map).Range()
/usr/local/Cellar/go/1.19/libexec/src/sync/map.go:354 +0x225
github.com/apache/rocketmq-client-go/v2/internal.(*rmqClient).RebalanceIfNotPaused()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/internal/client.go:877 +0x95
github.com/apache/rocketmq-client-go/v2/internal.GetOrNewRocketMQClient.func1()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/internal/client.go:231 +0x125
github.com/apache/rocketmq-client-go/v2/internal/remote.(*remotingClient).processCMD.func2()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/internal/remote/remote_client.go:244 +0x95
github.com/apache/rocketmq-client-go/v2/primitive.WithRecover()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/primitive/base.go:100 +0x48
github.com/apache/rocketmq-client-go/v2/internal/remote.(*remotingClient).processCMD.func4()
/Users/xxx/go/pkg/mod/github.com/apache/rocketmq-client-go/[email protected]/internal/remote/remote_client.go:243 +0x39

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 this pull request may close these issues.

1 participant