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/06 07:42:22 UTC

[GitHub] [pulsar-client-go] vandamon opened a new issue #268: The subscribe method should return the consumer instead of nil, if consumer is already connected

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


   **Is your feature request related to a problem? Please describe.**
   I have a situation in which the client can request to subscribe again over the same topic and subscription name (due to unahandled connection disconnect). For such situations, the subscribe method should return the consumer instead of nil, since there is no other way to retreive an already subscribed consumer.
   
   **Describe the solution you'd like**
   The subscribe method should return the consumer instead of nil, if consumer is already connected.
   
   **Describe alternatives you've considered**
   I don't see any alternatives
   
   **Additional context**
   None.
   


----------------------------------------------------------------
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] vandamon commented on issue #268: The subscribe method should return the consumer instead of nil, if consumer is already connected

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


   > @vandamon Can you keep a reference to the opened consumers? i.e. using a map to maintain a collection of opened consumers.
   
   @sijie Thanks for the reply. I can keep a reference to opened consumers, but I don't see that as an ideal or pragmatic solution. Application should not bloat memory for this purpose.


----------------------------------------------------------------
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] sijie commented on issue #268: The subscribe method should return the consumer instead of nil, if consumer is already connected

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


   @vandamon Can you keep a reference to the opened consumers? i.e. using a map to maintain a collection of opened consumers.


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