[BUG] Service Bus: Memory leak if session based consumer is closed and (re)started #18294
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
There is a memory leak is a session-based processor client is closed and then restarted.
Closing and restarting the processor client was done in an attempt to work around #18122. Closing and restarting does cause the SDK to pull the messages from the active sessions; however, this leak is causing the application to OutOfMemory.
Stopping I.e. stop() and restarting the client does not work as it does not retrieve the latest messages from a session as per #18122 so Closing is the only option whilst #18122 exists.
To Reproduce
Steps to reproduce the behavior:
E.g. see code snippet.
Code Snippet
Expected behavior
No memory leak.
Setup (please complete the following information):
The text was updated successfully, but these errors were encountered: