-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix google_dns_record_set with same name throw an error #11622
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
Fix google_dns_record_set with same name throw an error #11622
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. @slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
@slevenick This PR has been waiting for review for 3 weekdays. Please take a look! Use the label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion with the team on this, I think the best course of action is to add a mutex to this resource to prevent the 409 conflict situations described in the linked bug.
We don't want to remove this code as it will make the resource unauthoritative, which some users may currently depend on. If we're convinced we want to make it unauthoritative we could consider that in a major version, but until then we should limit the change to adding a mutex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion applied to use mutex instead of removing the code.
/gcbrun I think I messed something up |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
Errors
|
Tests analyticsTotal tests: 0 Click here to see the affected service packages
View the build log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation errors
Tests analyticsTotal tests: 47 Click here to see the affected service packages
View the build log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This PR fixes the issue hashicorp/terraform-provider-google#10661 by removing the piece of code that prevents the error when creating a resource with a name that already exists.
Release Note Template for Downstream PRs (will be copied)