delphix-integrations / terraform-provider-delphix

Repository for Delphix Terraform Provider built on DCT APIs.
https://integrations.delphix.com
11 stars 9 forks source link

Error: {"error":"failed","error_description":"Operation couldn't be completed due to concurrent updates"} #65

Closed nick-mathison closed 1 year ago

nick-mathison commented 1 year ago

We are running the Terraform Provider successfully for individual commands. However, when we run many commands via Terraform in quick succession, we receive the following error.

│ Error: {"error":"failed","error_description":"Operation couldn't be completed due to concurrent updates"}

Why is this happening? How can we fix this issue?

nick-mathison commented 1 year ago

Data Control Tower (DCT) is having trouble responding to 3rd party API commands that come in quick succession. Thus, it faults and responds with the generic "concurrent updates" error response.

This issue has been resolved in DCT v8+. Thus, if you upgrade your DCT server and try again, the issue will go away immediately.

If upgrading DCT will take too long, then we recommend adding simple ~10-second wait steps in between your Terraform commands. https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/sleep.html