Azure / azure-functions-servicebus-extension

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

ServiceBusTrigger with IsSessionEnabled = True generates TimeoutException every minute #202

Open mgaillez opened 2 years ago

mgaillez commented 2 years ago

We are having an issue after upgrading Microsoft.Azure.WebJobs.Extensions.ServiceBus from v4 to v5

Repro steps

  1. Create any function app with Microsoft.Azure.WebJobs.Extensions.ServiceBus 5.1.0

  2. Create a function like:

    [FunctionName("Function1")]
    public static void Run([ServiceBusTrigger("my-queue", Connection = "service_bus_connection_string", IsSessionsEnabled = true)]ServiceBusReceivedMessage myQueueItem, ILogger log)
    {
    log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
    }
  3. In host.json add:

    "logging": {
    "logLevel": { "default": "Warning" }
    }
    }
  4. Run the function app and wait for 1 minute. And you start seeing a timeoutexception every minute from then on.

Having loglevel Warning will flood our Application Insights with unwanted messages.

Provide any related information

v-bbalaiagar commented 2 years ago

Tagging @AnatoliB / @alrod for further investigation

batizar commented 2 years ago

We faced the same issue.