AzurePipelinesCredential does async over sync (over async) causing problems in AMQP tests #44519
Labels
Azure.Core
azure-core
Azure.Identity
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
AMQP has a specific threading model and gets token on a thread that can't be blocked. It uses async getToken API.
In the case of
AzurePipelinesCredential
this results in something like thisbecause of this code
azure-sdk-for-java/sdk/identity/azure-identity/src/main/java/com/azure/identity/AzurePipelinesCredential.java
Line 80 in fe75c7d
that does sync over async (and back to async under because of Netty).
While this affects tests only, it'd be nice to avoid async over sync and minimize issues like this.
The text was updated successfully, but these errors were encountered: