Skip to content

Retrying errors that can never succeed #44926

Open

Description

@smiklos

Looking into this, passing in the custom Exponential Backoff class is the better approach as mentioned above.

As, at SDK level the azure-core SDK isn't aware of exceptions thrown by dependencies/libraries downstream.

Handling custom exceptions from other libraries in azure-core will require it to take dependency on external libraries and it will be against its design.

Resolving this issue.

Originally posted by Vinay Gera (@g2vinay) in #35668

If not the core sdk then the individual dependencies like the key vault client should have their retry policies enriched with these custom errors that come from azure. I don't think it's the user who should be aware of all of these and provide a manual override as no-one want's a hanging application.

Activity

  1. added
    customer-reportedIssues that are reported by GitHub users external to the Azure organization.
    needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    on Apr 9, 2025
  2. alzimmermsft commented on Apr 9, 2025

    @alzimmermsft
    Member

    Thanks for filing this Miklos Szots (@smiklos)!

    Bill Wert (@billwert), Vinay Gera (@g2vinay), could you see if this is something that could be improved by default in azure-identity, where it uses a customized RetryPolicy that doesn't lead it into retrying failures that will never succeed. Or, see if this is something that should be pushed further upstream into msal4j.

  3. added and removed
    needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.
    on Apr 9, 2025
  4. added this to the Backlog milestone on Apr 21, 2025
  5. g2vinay commented on Oct 7, 2025

    @g2vinay
    Member

    I will investigate this and get back here.

  6. added
    bugThis issue requires a change to an existing behavior in the product in order to be resolved.
    and removed
    questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
    on Oct 9, 2025
  7. samvaity commented on Oct 21, 2025

    @samvaity
    Member

    Vinay Gera (@g2vinay) Do you have an update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Azure.IdentitybugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions