You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
Correct creation and deletion of users on mysql db
Actual Behavior
Error: Error 1396: Operation CREATE USER failed for 'user1'@'%'
The error happens because GRANT ran before CREATE USER and then CREATE USER failed because the user already exists. Due to me being using for_each I can't add a explicit depends_on for each GRANT on each CREATE_USER, and depending on what random order they run they randomly fail (or sometimes succeed).
Steps to Reproduce
To reproduce repeatedly create and destroy a list of several users, the longer the better, more chances of hitting the race condition, my setup was creating 15, and failed way more times than succeeded.
Additional Context
References
The text was updated successfully, but these errors were encountered:
This issue was originally opened by @jnerin as hashicorp/terraform#22545. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Correct creation and deletion of users on mysql db
Actual Behavior
Error: Error 1396: Operation CREATE USER failed for 'user1'@'%'
The error happens because GRANT ran before CREATE USER and then CREATE USER failed because the user already exists. Due to me being using for_each I can't add a explicit depends_on for each GRANT on each CREATE_USER, and depending on what random order they run they randomly fail (or sometimes succeed).
Steps to Reproduce
To reproduce repeatedly create and destroy a list of several users, the longer the better, more chances of hitting the race condition, my setup was creating 15, and failed way more times than succeeded.
Additional Context
References
The text was updated successfully, but these errors were encountered: