[BUG] Azure.Extensions.AspNetCore.DataProtection.Keys Heavy load causes blocked threads #40174
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
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.Extensions.AspNetCore.DataProtection.Keys 1.2.2
Describe the bug
We are using this together with ASP.NET Cookie authentication. One of our applications receives very many requests. When we restarted this application, it stopped responding. We took a memory dump, and it showed that all threads were waiting on
azure-sdk-for-net/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src/AzureKeyVaultXmlDecryptor.cs
Line 27 in 9af180c
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md#avoid-using-taskresult-and-taskwait
Expected behavior
It should handle heavy load during startup.
Actual behavior
All threads were blocked.
Reproduction Steps
NA
Environment
.NET 7
The text was updated successfully, but these errors were encountered: