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 2019/05/08 00:25:55 UTC

[GitHub] [pulsar] bruth opened a new issue #4231: Close blocks if called twice in Go Client

bruth opened a new issue #4231: Close blocks if called twice in Go Client
URL: https://github.com/apache/pulsar/issues/4231
 
 
   **Describe the bug**
   Calling `Client.Close()` twice blocks due to the presumably since the underlying [`CloseAsync`](https://github.com/apache/pulsar/blob/master/pulsar-client-go/pulsar/c_producer.go#L287-L291) blocks.
   
   **To Reproduce**
   Initialize a client and call `Close` twice successively. The second call will block indefinitely.
   
   **Expected behavior**
   Subsequent calls to `Close` should be a no-op or at least an error statement the client is already closed.
   
   **Screenshots**
   n/a
   
   **Desktop (please complete the following information):**
    - macOS when using the Go client
    - Linux (the apachepulsar/pulsar Docker image) for the Pulsar server
   
   **Additional context**
   n/a

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


With regards,
Apache Git Services