-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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] TopicClient.sendAsync timeout after 2 minutes even if default operation timeout is 1 minute #8398
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jfggdl |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jfggdl |
@krishnasingh1818 , Thanks for creating this issue. We are trying to reproduce your problem. Would you please provide the code snippet or minimal Docker image (seems that you are using AKS and you may be using Docker) that does not include any sensitive information. |
@krishnasingh1818, We have recently fixed couple of issues regarding few operations taking more time than the provided timeout. The client side fixes are present in Microsoft.Azure.ServiceBus version |
Could you also confirm if this is happening outside the scope of AKS? |
am trying this fix and will update with results. |
I updated all our microservices to use new Microsoft.Azure.ServiceBus version 4.1.0 but am seeing lot of System.OperationCanceledException being generated in application insight logs. Am noting that in most cases they not impacting transactions but its filling up app insight logs with exceptions noise. also i ran query in appinsight for dependencies to service bus and am not seeing durations of minutes or 2 minutes to complete service bus calls. so version upgrade might have fixed the long duration issue but now generating lot of exceptions in logs as mentioned above. I see pr created to fix OperationCanceledException in 4.1.1 . will this fix this issue. - > #8449. please review and advise.
|
@krishnasingh1818 yes, #8449 should fix |
Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment. |
Describe the bug
We are observing every day we have random 2 to 4 service bus send calls taking more that a minute to complete. some of them are successfully and some of them fail with timeout error. Interesting part is onces that fail with timeout error seem to fail after 2 minutes even though default timeout is 1 minute
Exception or Stack Trace
The operation did not complete within the allocated time 00:00:59.9999667 for object message.Reference: 9542a42a4ad14bce933bcadaffcc9fb1_G26, 08/21/2019 00:56:59 The operation did not complete within the allocated time 00:00:59.9999667 for object message.
Microsoft.Azure.ServiceBus.ServiceBusTimeoutException:
at Microsoft.Azure.ServiceBus.Core.MessageSender+d__53.MoveNext (Microsoft.Azure.ServiceBus, Version=3.0.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.RetryPolicy+d__18.MoveNext (Microsoft.Azure.ServiceBus, Version=3.0.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.RetryPolicy+d__18.MoveNext (Microsoft.Azure.ServiceBus, Version=3.0.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.Core.MessageSender+d__40.MoveNext (Microsoft.Azure.ServiceBus, Version=3.0.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Company.Common.Messaging.TopicService+<>c__DisplayClass12_0
1+<<SendAsync>b__2>d.MoveNext (Company.Common.Messaging, Version=6.0.3.0, Culture=neutral, PublicKeyToken=null) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) at Polly.FallbackSyntaxAsync+<>c__DisplayClass3_1+<<FallbackAsync>b__1>d.MoveNext (Polly, Version=6.0.0.0, Culture=neutral, PublicKeyToken=c8a3ffc3f8f825cc) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e) at Polly.Fallback.FallbackEngine+<ImplementationAsync>d__1
1.MoveNext (Polly, Version=6.0.0.0, Culture=neutral, PublicKeyToken=c8a3ffc3f8f825cc)Inner exception System.TimeoutException handled at Microsoft.Azure.ServiceBus.Core.MessageSender+d__53.MoveNext:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.Amqp.AsyncResult.End (Microsoft.Azure.Amqp, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at Microsoft.Azure.Amqp.SendingAmqpLink.EndSendMessage (Microsoft.Azure.Amqp, Version=2.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.Core.MessageSender+d__53.MoveNext (Microsoft.Azure.ServiceBus, Version=3.0.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
To Reproduce
Steps to reproduce the behavior:
Code Snippet
using basic TopicClient.SendAsync() to send messages with defaults.
Expected behavior
sendAsync should respect default operationTimeout of 1 minute and it should timeout exactly at one minute instead of 2 minutes.
Screenshots
Setup (please complete the following information):
we have common nuget messaging package which is used from code in 1, 2 below and in both cases we see this issue.
Additional context
The text was updated successfully, but these errors were encountered: