Azure Service Bus Connector 3.8.2: Dynamic Session receiver double-close causes shared connection reference count corruption
Not fixed yet. Salesforce has scheduled a fix.
Summary
A defect has been identified in Azure Service Bus Connector 3.8.2 when using Dynamic Sessions. During listener shutdown or reconnection, the same accepted ServiceBusReceiverClient may be closed more than once due to overlapping cleanup operations in MessageListenerSource and DynamicSessionReceiverTask.
This results in the Azure SDK shared connection client reference count (numberOfOpenClients) becoming negative. Consequently, the shared ReactorConnectionCache is disposed and connection recovery is terminated. Subsequent Send operations using the same connector configuration may fail with Connection recovery support is terminated (CONNECTIVITY).
The issue persists in version 3.8.2 because the previously implemented fix W-24692549 addresses cached producer recovery and does not cover the Dynamic Session receiver lifecycle.
Workaround
Salesforce says there isn't one, or hasn't published one. Check the official page.
Steps to reproduce
- Configure Azure Service Bus Connector version 3.8.2 with Dynamic Sessions enabled.
- Configure a listener with multiple consumers (for example, 40 consumers).
- Allow the Dynamic Session receiver tasks to initialize and establish connections.
- Trigger listener shutdown or reconnection.
- Observe the receiver cleanup operations in the application logs.
- Check whether
numberOfOpenClientsbecomes negative after the receiver clients are closed. - Attempt a Send operation using the same connector configuration.
Expected Result: Each accepted session receiver should be closed exactly once. The shared connection reference count should remain valid, and subsequent Send operations should continue to work.
Actual Result: Overlapping cleanup operations may close the same receiver more than once, causing the shared connection reference count to become negative, disposing the shared connection cache, and causing subsequent Send operations to fail.
Error details
The following errors and log messages may be observed: -Connection recovery support is terminated. (CONNECTIVITY) -AZURE-SERVICE-BUS-MESSAGING:CONNECTIVITY -There should not be less than 0 clients -No more open clients, closing shared connection cache -Shared ReactorConnectionCache was already disposed The shared connection client reference count (numberOfOpenClients) may become negative (for example, -355 or -359 in customer logs).
History
Description updated
Nov 30, 2026
First tracked here as Solution Scheduled
Nov 30, 2026
Also open in Anypoint Connectors
SFTP Connector Write Operation Fails with SSH_FX_NO_SUCH_FILE Exception
Solution ScheduledMuleSoft / Anypoint ConnectorsReported Sep 10, 202559 reports59reports
Azure Event Hib listener not listening the events when it stoped and restarted due to checkpoint not created
Solution ScheduledMuleSoft / Anypoint ConnectorsReported Feb 14, 202422 reports22reports
JMS connector - enabling TLS cause problems with property socket.verifyHostName=false
Solution ScheduledMuleSoft / Anypoint Connectorsv1.9.1Reported Feb 28, 202419 reports19reports
Performance improvement for Sftp Connector 2.x
In ReviewMuleSoft / Anypoint ConnectorsReported Sep 26, 202416 reports16reports