powerful-football-8169407/10/2022, 8:35 AM
type from the
namespace. It seems Cosmos is only able to create one of these at a time. One of them succeeds, the other gets:
If I retry the
error: Code="PreconditionFailed" Message="There is another user operation in progress which requires an exclusive lock on [orgflow-runner-runner-cdb]. Please retry after sometime.\r\nActivityId: af360631-3ac5-470a-897a-ba45563aabc7, Microsoft.Azure.Documents.Common/2.14.0"
then the next time the other one gets created. Now, our IaC code is very decomposed, with different microservices each owning and contributing their own chunks to the resource tree, and these two role assignments live in different and completely decoupled parts of the code. Therefore it’s not really feasible to have one of them simply do
on the other to serialize their creation. How can we solve this problem?