streamnative / pulsar-client-go

Apache Pulsar Go Client Library
https://pulsar.apache.org/
Apache License 2.0
1 stars 2 forks source link

ISSUE-636: [Bug] The pendingRequest resource may leak #229

Open sijie opened 3 years ago

sijie commented 3 years ago

Original Issue: apache/pulsar-client-go#636


Expected behavior

When a request error occurs, expect the pendingRequest resource to be shut down normally

Actual behavior

When we clean up the cache resources of the producer or consumer on the client side, in fact we need to clean up the corresponding pendingRequest resources at the same time, otherwise it may cause resource leakage

Steps to reproduce

For more detailed information, refer to https://github.com/apache/pulsar-client-go/pull/622