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/06/09 16:20:01 UTC

[GitHub] [pulsar-client-go] vergnes opened a new issue #271: Partition discovery is still running after calling producer.Close

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


   #### Expected behavior
   
   Once a producer is closed, the ticker running the partitions discovery in the background should stop.
   
   #### Actual behavior
   
   The ticker is still running in the background and there is a race condition when the number of partitions changes after the producer is closed.
   panic: runtime error: index out of range [1] with length 1
   goroutine 370 [running]:
   /go/src/my-project/vendor/github.com/apache/pulsar-client-go/pulsar.(*producer).internalCreatePartitionsProducers(0xc000527680, 0x0, 0x0)
   /go/src/my-project/vendor/github.com/apache/pulsar-client-go/pulsar/producer_impl.go:136 +0x859
   /go/src/my-project/vendor/github.com/apache/pulsar-client-go/pulsar.newProducer.func2(0xc000527680)
   /go/src/my-project/vendor/github.com/apache/pulsar-client-go/pulsar/producer_impl.go:100 +0xb7
   created by my-project/vendor/github.com/apache/pulsar-client-go/pulsar.newProducer
   	/go/src/my-project/vendor/github.com/apache/pulsar-client-go/pulsar/producer_impl.go:97 +0x171
   
   #### Steps to reproduce
   
   1. Create a producer for a partitioned topic
   2. Close the producer
   3. Delete the topic and its partition
   
   #### System configuration
   **Pulsar version**: v0.1.0
   


----------------------------------------------------------------
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] merlimat closed issue #271: Partition discovery is still running after calling producer.Close

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


   


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