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

database_user: Prevent creating multiple users for the same cluster in parallel. #1027

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

andrewsomething
Copy link
Member

This PR resolves an issue where creating multiple users for a MongoDB cluster at once can return a 500-level response by preventing parallel creation or deletion of users for the same cluster using a mutex.

(Annoyingly using for_each is not supported in the acceptance test framework. hashicorp/terraform-plugin-sdk#536)

@andrewsomething andrewsomething requested a review from a team September 8, 2023 17:40
Copy link
Member

@danaelhe danaelhe left a comment

Choose a reason for hiding this comment

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

kinda odd for_each isn't supported in test framework 🤷‍♀️ but looks good 👍

@andrewsomething andrewsomething merged commit 83a92e0 into main Sep 8, 2023
2 checks passed
@andrewsomething andrewsomething deleted the asb/dbaas-users-mutex branch September 8, 2023 17:56
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.

None yet

2 participants