-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ServiceBusTrigger throws ServiceBusException because of timeout #41491
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Hi @HaroldH76, |
We are seeing exactly the same issue. We have Azure Functions which receive a batch of service bus messages every 5min with sessions enabled.
|
@JoshLove-msft Did I understand it correctly that this log message has a too high severity level (error) and can be safely suppressed using a AzureEventSourceListener like you suggested here: #29066 (comment) I guess it is not necessary to increase the TryTimeout as this will have influence on other functionality as well, right? So suppressing the error log would be a workaround until this issue is fixed. |
Correct |
But it would be great if it could be a change to the library to log it as info or debug. Because we have lots of microservices/functions that have the servicebus trigger and it would give us a lot of convenience if we just have to update the nuget. I was hoping the issue would disappear if we switch to isolated functions but I noticed today that they have the same issue. And I think it is a bug and not a feature ;) |
@JoshLove-msft Could you please provide an example how to filter out this specific log message in an in-process Azure Function as a workaround until this bug is fixed? I don't fully get it how to use the AzureEventSourceListener for it. Where do you setup the AzureEventSourceListener in the in-process Azure Function, where do you dispose it? And what do you do with the other messages you don't want to filter out? Do you really just write it to the Console like in this example??: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample10_AzureEventSourceListener.md#apply-filtering-logic-to-logs |
+1 |
Library name and version
Microsoft.Azure.WebJobs.Extensions.ServiceBus 5.13.5
Describe the bug
We frequently get the following error in Application Insignts:
I think this happens because we have a very low number of messages. Especially on our dev and acc environment we have a lot of these errors. On production they also occur occasionally.
When I search for this error on the internet some suggest that we use a low level api (#29066).
But we use the latest Microsoft.Azure.WebJobs.Extensions.ServiceBus and the (high level) ServiceBusTrigger.
Is there anything we can do to prevent these errors? Can the ServiceBusTrigger be updated to not log these as error but as info?
Expected behavior
I expect no errors when there are no messages for a longer period of time.
Actual behavior
When there are no messages then each minute the error is logger.
Reproduction Steps
We have an Azure function with a ServiceBusTrigger:
Environment
In process Azure function in netcore 6.0 on Linux app service plan.
The text was updated successfully, but these errors were encountered: