[BUG] [Service Bus] Can't create session when the connection is closing #11066
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.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Service Bus
Describe the bug
We get like constant errors (100dreds per hour) in our debugger console and AI about service bus.
One of them is an InvalidOperationException:
Can't create session when the connection is closing.
This is happening when using the built-in message pump mechanism. This message pump uses the following code:
When breaking on that exception, I can see the client's 'IsClosedOrClosing' property is false, while the exception says otherwise:
However, when going deeper, in the SessionClient.AcceptMessageSessionAsync, I can see that the session is closed/closing;
Using .NET Core 3.1, and Microsoft.Azure.ServiceBus 4.1.2 version.
The text was updated successfully, but these errors were encountered: