[BUG] Azure Keyvault GetSecret API timouts #46370
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.
issue-addressed
Workflow: The Azure SDK team believes it to be addressed and ready to close.
KeyVault
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.Security.KeyVault.Secrets 4.6.0
Describe the bug
We are seeing 2 different scenarios with very GetSecret API calls randomly failing after a significant amount of time. This mostly happen when traffic is quite high.
Case 1 : GetSecret API that get cancelled after ~100s and the automated retry is succeeding right after in 23ms delay.
(operation Id 9b3dcb3caafc90843ef1b7612e240807)
Case 2 : GetSecret API takes #20s to return 401 error code and the automated retry is succeeding right after.
I understand that the initial 401 is expected because of the authentication flow, but i'm surprised it takes ~20s to respsond.
(operation Id 0ac0c16170c7c1c6a7dc6a9a77425753)
This issue seem quite similar to 37420, that is Closed.
Expected behavior
GetSecret call does not fails after long timeout.
Actual behavior
Call to GetSecret randomly fails after many seconds
Reproduction Steps
Here is the source code of the class calling getSecret API.
public class KeyvaultSecretClient : IKeyvaultSecretClient
{
private static readonly ActivitySource ActivitySource = new ActivitySource(typeof(KeyvaultSecretClient).FullName!, "1.0.0");
private const string GetSecretActivityName = $"{nameof(KeyvaultSecretClient)}:{nameof(GetSecretAsync)}";
}
Environment
.net 8.0
The text was updated successfully, but these errors were encountered: