Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.35k stars 4.66k forks source link

[QUERY] The buffered producer took too long to start #46357

Open zhunipingan opened 1 hour ago

zhunipingan commented 1 hour ago

Library name and version

Azure.Messaging.EventHubs" Version="5.11.5"

Query/Question

Hi, I met this error when call the method in the SDK of eventhub. Azure.Messaging.EventHubs.EventHubsException(ServiceTimeout): The buffered producer took too long to start. (xxxxxx). For troubleshooting information, see https://aka.ms/azsdk/net/eventhubs/exceptions/troubleshoot at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.StartPublishingAsync(CancellationToken cancellationToken) at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.EnqueueEventsAsync(IEnumerable1 events, EnqueueEventOptions options, CancellationToken cancellationToken) at MYSERVICE.EventHubBufferedPublisher.SendAsync[T](IEnumerable1 events, String partitionKey, CancellationToken cancellationToken)

I think it is one transient problem, not all time I will get this error. I want to know If I get this error, will the event will be lost. In this scenario, it seems the SendEventBatchFailedAsync is not called. Under what circumstances will the FailedAsync or SucceedAsync methods be called? When will the retrytime we configured be used? Does this scenario experience retry? Do I need to customize a retry at the outermost level?

Appreciate for your help.

Environment

No response

github-actions[bot] commented 1 hour ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.