You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/13 02:20:16 UTC

[GitHub] [pulsar-client-go] maolinHu commented on issue #858: concurrent map iteration and map write

maolinHu commented on issue #858:
URL: https://github.com/apache/pulsar-client-go/issues/858#issuecomment-1276938451

   properties := make(map[string]string)
   for _, data := range Arr {
        msg := &pulsar.ProducerMessage{
   	Payload:      data,
   	Properties:   properties,
       }
       p.sendAsync(ctx, msg, fn)
   }
   
   I guess it is caused by multiplexing map(pulsar.ProducerMessage.Properties) when send asyn, This is an occasional bug.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org