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 2020/04/20 07:56:51 UTC

[GitHub] [pulsar-client-go] cornelk opened a new issue #231: Race in partitionProducer Send on err access

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:
users@infra.apache.org



[GitHub] [pulsar-client-go] cornelk closed issue #231: Race in partitionProducer Send on err access

Posted by GitBox <gi...@apache.org>.
cornelk closed issue #231:
URL: https://github.com/apache/pulsar-client-go/issues/231


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-go] wolfstudy commented on issue #231: Race in partitionProducer Send on err access

Posted by GitBox <gi...@apache.org>.
wolfstudy commented on issue #231:
URL: https://github.com/apache/pulsar-client-go/issues/231#issuecomment-619385017


   @cornelk Thanks feedback, If possible, can you help to send a new pull request to fix this?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [pulsar-client-go] keithnull commented on issue #231: Race in partitionProducer Send on err access

Posted by GitBox <gi...@apache.org>.
keithnull commented on issue #231:
URL: https://github.com/apache/pulsar-client-go/issues/231#issuecomment-635021070


   Seems this has already been fixed by #229?


----------------------------------------------------------------
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:
users@infra.apache.org