Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 404 retry, add custom ctx with timeout #285

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

MarkDordoy
Copy link
Contributor

This PR Removes the Retryon404 added by @amarbut24 and extends the context timeout.

Since having the 404retry in place, it has done the desired effect of retrying, but what appears to happen is we end up with duplicate apps, which then cause a conflict.

My assumption here is the post to MS Graph takes multiple actions on the backend, which can take time to complete (expecially in US gov, texas data center).

Ive been able to reproduce the same issue using the offical MS Graph powershell cmdlets against US Gov Azure tenants so this issue is not specific to hamilton, but more of an azure issue.

My hope with this PR is extending the context timeout to 45 seconds, will give the client longer to wait for the response. If Azure is the one returning the 404, then there is likely nothing we can do, and Microsoft will need to fix.

Copy link
Owner

@manicminer manicminer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MarkDordoy, thanks for looking at this. I think it's good to remove the ConsistencyFailureFunc, and as discussed we can implement a workaround in the AzureAD provider rather than in the SDK

msgraph/application_templates.go Outdated Show resolved Hide resolved
msgraph/application_templates.go Outdated Show resolved Hide resolved
manicminer added a commit to hashicorp/terraform-provider-azuread that referenced this pull request Jun 11, 2024
BrendanThompson pushed a commit to BrendanThompson/terraform-provider-azuread that referenced this pull request Jun 18, 2024
@manicminer manicminer added this to the v0.71.0 milestone Jun 19, 2024
@manicminer manicminer merged commit a1a4c7d into manicminer:main Jun 19, 2024
1 of 2 checks passed
manicminer added a commit that referenced this pull request Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants