Skip to content
Bug Barometer

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

  1. Configure Azure Service Bus Connector version 3.8.2 with Dynamic Sessions enabled.
  2. Configure a listener with multiple consumers (for example, 40 consumers).
  3. Allow the Dynamic Session receiver tasks to initialize and establish connections.
  4. Trigger listener shutdown or reconnection.
  5. Observe the receiver cleanup operations in the application logs.
  6. Check whether numberOfOpenClients becomes negative after the receiver clients are closed.
  7. 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

  1. Description updated

    Nov 30, 2026

  2. First tracked here as Solution Scheduled

    Nov 30, 2026

Also open in Anypoint Connectors