azure-sdk-for-java: [BUG] JCA client stuck on KeyStore engineGetCertificate
Describe the bug I am using azure-security-keyvault-jca:1.0.1, and load a AzureKeyVault KeyStore When I call keystore.aliases(), it endless stuck
Exception or Stack Trace Not a crash, the last log is Aug 09, 2021 11:14:17 AM com.azure.security.keyvault.jca.AuthClient getAccessToken INFO: Getting access token using client ID / client secret
To Reproduce it doesn’t happen all the time, but we do have this stuck for few times a week. When this happens, another azure key vault under same account has also this problem
Code Snippet
Security.addProvider(new KeyVaultJcaProvider());
KeyStore azureKeyStore = KeyStore.getInstance("AzureKeyVault");
KeyVaultLoadStoreParameter parameter = new KeyVaultLoadStoreParameter(keyVaultUri, tenantId, clientId, cientSecret);
azureKeyStore.load(parameter);
azureKeyStore.aliases(); ---- this code lin stuck
Expected behavior the stuck should never happens
Screenshots no screen shot
Setup (please complete the following information):
- OS: MacOS, or UBI8 Container with Java 8
- IDE: IntelliJ for dev or Java 8 for production
- Library/Libraries: azure-security-keyvault-jca:1.0.1
- Java version: 8
- App Server/Environment: Embedded Jetty
- Frameworks: Spring Boot
If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please provide
No
Additional context Add any other context about the problem here.
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Bug Description Added
- Repro Steps Added
- Setup information Added
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (10 by maintainers)
@vcolin7 Thank you for your information. I created an issue: https://github.com/Azure/azure-sdk-for-java/issues/23547
@chenrujun Is there any way to change the log level on the JCA library to see what’s going on at a more granular level (e.g.
VERBOSEinstead ofINFO)?@chenrujun @saragluna could you please assist @eric-genesys on this issue?
/cc @vcolin7