-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
resource/aws_ram: Fix eventual consistency problems #17032
resource/aws_ram: Fix eventual consistency problems #17032
Conversation
1035942
to
db54722
Compare
i, err := findResourceShareInvitation(conn, resourceShareARN, status) | ||
invitation = i |
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.
Not a golang expert, but is there a reason i
is used here and then immediately assigned to invitation
instead of just using invitation, err :=
?
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.
No, actually you cannot substitute the returned output for the outer invitation
using :=
...
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.
Ah, TIL. Thanks!
db54722
to
19293a7
Compare
19293a7
to
fa70c5e
Compare
Hey guys, Can you please merge this PR? |
Any estimate on when we can expect this to be merged? |
This PR might also fix the race condition I reported here: #18332 |
@YakDriver I built the aws provider using this branch and can confirm it does appear to also address the race condition I reported in #18332 (and probably #17658 and #15187, as well as the two linked in the PR description #13494 and #16578). At least, I looped over 100 builds without encountering the failure... |
fa70c5e
to
559e521
Compare
@shuheiktgw My friend, thank you for this excellent PR. Unfortunately, I believe due to account settings changes on our side, I cannot currently test this properly. Rather than wait for us to straighten out our account problems, if you (and @lorengordon) can help test/fix my new changes, that would be very helpful! Make sure to pull my latest changes to your branch. Please let me know if you have any questions. What I'm currently getting from the acceptance tests (GovCloud):
Output from acceptance tests on commercial (
|
@YakDriver running my test now, the loop takes a long time, so probably will report back tomorrow. |
This has been released in version 3.38.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
fwiw, closing the loop, finally made it through my looped tests for the race condition. didn't encounter it even once in 100 executions of the test config, so 🤞 i'm pretty sure this is solid! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Closes #13494
Closes #15187
Closes #16578
Closes #17658
Closes #18332
Release note for CHANGELOG:
Output from acceptance testing:
Thank you for your review! 👍