omnilight opened a new pull request #497:
URL: https://github.com/apache/pulsar-client-go/pull/497


   
   Fixes #496 
   
   ### Motivation
   
   Ability to set maximum number of reconnections to broker for consumer 
without consumer been stuck
   
   ### Modifications
   
   - Added new method `Cosed() <-chan struct` to consumer interface to be able 
to control if consumer is closed when using its `Chan()` method
   - For partitioned consumer added call of the parent's `Close()` method in 
case when number of reconnections is limited. This fixes problem when consumer 
stuck in disconnected state.
   
   ### Verifying this change
   
   This change added tests and can be verified as follows:
   
    - Added test for consumer closing on reacing max reconnection count
    - Added test for new `Closed()` method
   
   ### Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not documented)
   
   


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