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


[ Full content available at: 
https://github.com/apache/incubator-pulsar/pull/2527 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to