[BUG] token retrieval intermittently stuck in BearerTokenAuthenticationPolicy in Azure.Core 1.40.0 #45351
Labels
Azure.Core
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
Library name and version
Azure.Core 1.40.0
Describe the bug
Same as #44817. However, the "fix" in #44882 only works if a CancellationToken is passed on and cancellation is requested.
We're using ASP.NET Core Data Protection with Azure.Extensions.AspNetCore.DataProtection.Blobs. This is building an Azure.Core.HttpMessage with default cancellation token. So, it is never cancelled and requests hang indefinitely.
I know Azure.Core 1.42.0 is the latest version. But it seems the fix in #44882 would not work in this scenario. The workaround using an
CancellationToken
does not solve the real issue. There seems to be a specific scenario in which theCurrentTokenTcs
never gets a result.Multiple of our applications deadlock in this situation:
Expected behavior
Blob storage call is executed
Actual behavior
The call is stuck and never completes
Reproduction Steps
Hard to reproduce
Environment
The text was updated successfully, but these errors were encountered: