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


   #### Expected behavior
   
   Regarding to this 
[issue](https://github.com/apache/pulsar-client-go/pull/154) it seems that this 
problem wasn't solved. I'm still get memory leak on closing consumer
   
   When i do this (as example below) then the memory leaks happen
   
   ```go
                             for k, v := range TopicsRedis {
                                    consumerChannel := make(chan 
pulsar.ConsumerMessage, v.Priority)
                                consumer, err := 
m.PulsarClient.Subscribe(pulsar.ConsumerOptions{
                                        Topic:                                  
  config.Vars.TopicPrefix + k,
                                        SubscriptionName:             "my-sub",
                                        Type:                                   
  pulsar.Shared,
                                        SubscriptionInitialPosition: 
pulsar.SubscriptionPositionEarliest,
                                        MessageChannel:                
consumerChannel,
                                })
                                    ...
                                    consumer.Close()
   
   ```
   
   #### System configuration
   **Pulsar version**: 0.1.1
   


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