Gleiphir2769 opened a new pull request, #835: URL: https://github.com/apache/pulsar-client-go/pull/835
Fixes #833 ### Motivation The availablePermits may leak when message is discarded. Please refer to #833 for details. ### Modifications - Wraps a struct availablePermits to atomic increase and reset. - Add the permits increasing in `discardCorruptedMessage`. ### Verifying this change - [x] Make sure that the change passes the CI checks. This change added tests and can be verified as follows: `pulsar/consumer_test.go:TestAvailablePermitsLeak()` -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
