Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 35 forks source link

Constant timeouts #221

Open FBryant87 opened 1 year ago

FBryant87 commented 1 year ago

Whilst our function app consumes messages from a Premium service bus subscription successfully, it is quite slow (8 per minute).

Looking at the function app logs, I can see they're full of timeouts connecting to the bus (multiple every minute, consistently):

2022-12-06T12:45:47Z [Verbose] The processor accept session call timed out. It will be tried again. (Namespace 'prod-prem-msg-broker-sbus.servicebus.windows.net', Entity path 'MyEvent/Subscriptions/MyApp'). Error Message: 'Azure.Messaging.ServiceBus.ServiceBusException: The operation did not complete within the allotted timeout of 00:00:59.9700000. The time allotted to this operation may have been a portion of a longer timeout. For more information on exception types and proper exception handling, please refer to https://aka.ms/ServiceBusExceptions . TrackingId:3361f483-43a4-41fd-bf92-9b6a8d8595e6_B46, SystemTracker:prod-prem-msg-broker-sbus:Topic:mytopic|myapp, Timestamp:2022-12-06T12:45:46 TrackingId:2d3bade5757842659a196282c715639e_G5, SystemTracker:gateway5, Timestamp:2022-12-06T12:45:46 (ServiceTimeout). For troubleshooting information, see https://aka.ms/azsdk/net/servicebus/exceptions/troubleshoot. at Azure.Messaging.ServiceBus.ServiceBusRetryPolicy.RunOperation[T1,TResult](Func4 operation, T1 t1, TransportConnectionScope scope, CancellationToken cancellationToken, Boolean logRetriesAsVerbose) at Azure.Messaging.ServiceBus.Amqp.AmqpReceiver.OpenLinkAsync(CancellationToken cancellationToken) at Azure.Messaging.ServiceBus.ServiceBusReceiver.OpenLinkAsync(CancellationToken cancellationToken) at Azure.Messaging.ServiceBus.ServiceBusSessionReceiver.CreateSessionReceiverAsync(String entityPath, ServiceBusConnection connection, ServiceBusSessionReceiverOptions options, String sessionId, CancellationToken cancellationToken, Boolean isProcessor)' 2022-12-06T12:45:47Z [Verbose] Creating a ServiceBusSessionReceiver (Namespace: 'prod-msg-broker-sbus.servicebus.windows.net', Entity name: 'MyEvent/Subscriptions/MyApp'

This is a v4 Linux FunctionApp on .net6 - we're using the latest versions of all libraries. Any ideas?