apache / rocketmq-clients

RocketMQ Clients - Collection of Client Bindings for Apache RocketMQ
https://rocketmq.apache.org/
Apache License 2.0
321 stars 206 forks source link

[Bug] copy sync.Map will cause the data race in loadbalance #811

Closed absolute8511 closed 1 month ago

absolute8511 commented 2 months ago

Before Creating the Bug Report

Programming Language of the Client

Go

Runtime Platform Environment

Linux

RocketMQ Version of the Client/Server

newest

Run or Compiler Version

golang 1.20

Describe the Bug

copy sync.Map will cause the data race, it may report as below image

Steps to Reproduce

running benchmark to send messages for golang and make it sometimes blocked or limited by the server.

What Did You Expect to See?

no panic

What Did You See Instead?

panic as below image

Additional Context

No response

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 3 days since being marked as stale.