Skip to content
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

[QUERY] Service Bus - OperationCanceledException on RenewLock #22635

Closed
Marusyk opened this issue Jul 13, 2021 · 8 comments
Closed

[QUERY] Service Bus - OperationCanceledException on RenewLock #22635

Marusyk opened this issue Jul 13, 2021 · 8 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Service Bus

Comments

@Marusyk
Copy link
Contributor

Marusyk commented Jul 13, 2021

Query/Question
Sometimes I got "The operation was canceled." in my SubscriptionClient with SessionHandler.
I could not find any reasons for that. Could you please describe the case?

Please let me know if I need provide more info

Microsoft.Azure.ServiceBus.ServiceBusException:
at Microsoft.Azure.ServiceBus.MessageSession+d__14.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.MessageSession+d__18.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.SessionReceivePump+d__24.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
Inner exception System.OperationCanceledException handled at Microsoft.Azure.ServiceBus.MessageSession+d__14.MoveNext:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.Amqp.AsyncResult.End (Microsoft.Azure.Amqp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at Microsoft.Azure.ServiceBus.Core.MessageReceiver+<>c__DisplayClass86_0.b__1 (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.Core.MessageReceiver+d__86.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.MessageSession+d__14.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)

There is similar issue with MessagePumpTaskAsync. It was fixed by ignoring the OperationCanceledException. Can I also ignore such exceptions or is it critical for RenewLock?

Environment:

  • Name and version of the Library package used: Microsoft.Azure.ServiceBus 5.1.3
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): 5.0.203 Windows
  • IDE and version : Visual Studio 16.9.6
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 13, 2021
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Service Attention Workflow: This issue is responsible by Azure service team. Service Bus labels Jul 14, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jul 14, 2021
@ghost
Copy link

ghost commented Jul 14, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @axisc.

Issue Details

Query/Question
Sometimes I got "The operation was canceled." in my SubscriptionClient with SessionHandler.
I could not find any reasons for that. Could you please describe the case?

Please let me know if I need provide more info

Microsoft.Azure.ServiceBus.ServiceBusException:
at Microsoft.Azure.ServiceBus.MessageSession+d__14.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.MessageSession+d__18.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.SessionReceivePump+d__24.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
Inner exception System.OperationCanceledException handled at Microsoft.Azure.ServiceBus.MessageSession+d__14.MoveNext:
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.Amqp.AsyncResult.End (Microsoft.Azure.Amqp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
at Microsoft.Azure.ServiceBus.Core.MessageReceiver+<>c__DisplayClass86_0.b__1 (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.Core.MessageReceiver+d__86.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
at Microsoft.Azure.ServiceBus.MessageSession+d__14.MoveNext (Microsoft.Azure.ServiceBus, Version=5.1.2.0, Culture=neutral, PublicKeyToken=7e34167dcc6d6d8c)

There is similar issue with MessagePumpTaskAsync. It was fixed by ignoring the OperationCanceledException. Can I also ignore such exceptions or is it critical for RenewLock?

Environment:

  • Name and version of the Library package used: Microsoft.Azure.ServiceBus 5.1.3
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): 5.0.203 Windows
  • IDE and version : Visual Studio 16.9.6
Author: Marusyk
Assignees: -
Labels:

Client, Service Attention, Service Bus, customer-reported, needs-team-attention, needs-triage, question

Milestone: -

@jsquire
Copy link
Member

jsquire commented Jul 14, 2021

//cc: @shankarsama

@jsquire
Copy link
Member

jsquire commented Jul 14, 2021

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

@Marusyk
Copy link
Contributor Author

Marusyk commented Jul 25, 2021

Hi @shankarsama could you please help?

@Marusyk
Copy link
Contributor Author

Marusyk commented Aug 22, 2021

Can anyone answer me? Please
@jsquire are you sure that @shankarsama is the right person?

@jsquire
Copy link
Member

jsquire commented Aug 23, 2021

Hi @Marusyk. Yes; @shankarsama's team owns the Service Bus service and the generation of the SDK that you're asking about. Looping in a few of the other team members in case they're available to assist.

//cc: @DorothySun216, @bainian12345, @vinaysurya, @yvgopal

@ramya-rao-a
Copy link
Contributor

@Marusyk Apologies for the delay here.

Please note that the Microsoft.Azure.ServiceBus package is now deprecated. A newer package Azure.Messaging.ServiceBus is available as of November 2020. While the older package will continue to receive critical bug fixes, we strongly encourage you to upgrade. Read the getting started guide and migration guide for more details.

If you still have issues using the older Microsoft.Azure.ServiceBus package, please use your Azure support plan to open an Azure support ticket.

@Marusyk
Copy link
Contributor Author

Marusyk commented Oct 7, 2021

Thanks @ramya-rao-a very useful and in time :(
I'm very glad that there is a new package but I use this one and I'm trying to figure out what's wrong with it. I cannot open a ticket so I was looking for help here

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Service Bus
Projects
None yet
Development

No branches or pull requests

5 participants