cornelk opened a new issue #231:
URL: https://github.com/apache/pulsar-client-go/issues/231


   ```
   WARNING: DATA RACE
   Write at 0x00c0001b0320 by goroutine 35:
   vendor/github.com/apache/pulsar-client-go/pulsar.(*partitionProducer).Send()
   vendor/github.com/apache/pulsar-client-go/pulsar/producer_partition.go:361 
+0x378
   ...
   Previous write at 0x00c0001b0320 by goroutine 19:
   
vendor/github.com/apache/pulsar-client-go/pulsar.(*partitionProducer).Send.func1()
   vendor/github.com/apache/pulsar-client-go/pulsar/producer_partition.go:354 
+0x5c
   ```
   
   this is caused by writing to the err variable from different goroutines:
   
   ```
        p.internalSendAsync(ctx, msg, func(ID MessageID, message 
*ProducerMessage, e error) {
                err = e
   ...
        if err = p.Flush(); err != nil {
   ...
   ```
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to