[BUG] Thread starvation in Azure extensions for DataProtection #45223
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.
Extensions
ASP.NET Core extensions
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
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.Identity.dll 1.12.0+75fb76... 1.1200.24.31701
Describe the bug
We have Azure Web App service on stage environment based on .net 8 and reproducing thread starvation due to
Azure.Extensions.AspNetCore.DataProtection
.Unfortunately I can't provide a dump, just because I forgot to do it.
We are using
Microsoft.AspNetCore.DataProtection
(azure keyvault & azure blob storage) for auth cookie.ExcludeManagedIdentityCredential": false
and all other credentials are excluded for all azure clientsExpected behavior
Works without thread starvation.
My points:
AzureBlobXmlRepository
.UseRequestTimeouts
does not help here since it will wait result forever also.Actual behavior
Azure.Extensions.AspNetCore.DataProtection
.Related links to this problem.
Reproduction Steps
Code for registering data protection services
Logs
We can provide more logs in direct communication.
Last succeeded request for this behaviour.
Looks like we are validating encrypted auth cookie request.
For last succeeded request (where we have
Existing cached key ring is expired
log) we have next logsHanged request 1.
Looks like here we are creating encrypted auth cookie response.
Hanged request 2.
Environment
2024-07-16 16:19:44.128 +00:00
and still runs until problem detected.Lib versions in artifact for this deploy
On 27.07.2024 we are using latest stable version for all Microsoft libs.
The text was updated successfully, but these errors were encountered: