Azure / azure-service-bus-dotnet

☁️ .NET Standard client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
Other
235 stars 120 forks source link

AcceptMessageSession takes from 5 ms to more than few minutes without Timeout exception #690

Open rybczak opened 5 years ago

rybczak commented 5 years ago

Actual Behavior

  1. AcceptMessageSession takes from 5ms to more than 2 minutes - timeout was set to 10ms, 30ms and to default one.

Expected Behavior

We're trying to read messages from Servicebus in Azure environment. Our process is run inside Durable Functions framework and it sometimes fails with FunctionTimeoutException.

We find out that there is a problem with AcceptMessageSession. Our workflow:

From time to time AcceptMessageSession takes a lot of time (in minutes): in last process run there were 3 AcceptMessageSession invocation which takes from 1 to 3 minutes and 17 invocations which takes less than 10 ms.

We thought that Servicebus will throw exception when methods is taking more than expected.

Versions