-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Add mutex and retry for usage plan key #10092
Conversation
I'm having the same problem, I created a repo reproducing that: |
Team, |
@gdavison @bflad is this something that could be merged in the near future? We're also having this issue in a situation where we have a configurable amount of api keys to be linked to usage plans, so adding explicit dependencies does not work in our case -- and executing with parallellism 1 slows down our pipeline quite a lot... |
Hi folks 👋 After creating some additional testing for this resource that included concurrent In this case, we'll be taking a slightly different approach instead of a mutex where we introduce the retry logic directly into the AWS Go SDK service client since it will yield the simplest fix. Thank you @hieven for contributing this and that implementation will be refactored on top of this commit along with the covering testing. 👍 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
We have same issue as #483 while creating multiple associations between API key and usage plan with default concurrency: 10.
Hence we'd like to introduce mutex lock while creating such resource to prevent from concurrent modification error
As mutex lock couldn't help with simultaneous executions of Terraform from many developers, we also add retry logic.
Community Note
Relates #483
Release note for CHANGELOG:
Output from acceptance testing: