merlimat opened a new pull request #2527: [go] Ensure producer/consumer/reader 
keep a ref of client instance so it won't be finalized
URL: https://github.com/apache/incubator-pulsar/pull/2527
 
 
   ### Motivation
   
   As reported in #2521, there's an issue with Go client reader that makes it 
stop receiving messages after a certain point. 
   
   The reason is that the `client` object gets finalized by Go runtime and that 
triggers all Pulsar native threads to exit.
   
   The Go `client` object gets finalized since there are no references to it.
   
   ### Modifications
   
   Ensure producer/consumer/reader hold a reference on the client instance as 
long as they're active.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to