如何在Terraform中解决“错误409:这些数据存储区实体上的争用过多”?

问题描述

我是terraform的新手。在这里,我试图使用terraformGCP中创建多个Firestore索引。我收到此错误Error: Error creating Index: googleapi: Error 409: too much contention on these datastore entities. please try again.too much contention!是什么意思,以下是我的terraform脚本:

resource "google_firestore_index" "job_config2_index" {
  project = var.projectId

  collection = var.job_config_firestore

  fields {
    field_path = "customer_id"
    order      = "ASCENDING"
  }

  fields {
    field_path = "job_type"
    order      = "ASCENDING"
  }

  fields {
    field_path = "store_id"
    order      = "ASCENDING"
  }

  fields {
    field_path = "ms_asset_id"
    order      = "ASCENDING"
  }

  fields {
    field_path = "end_date_time"
    order      = "ASCENDING"
  }

  fields {
    field_path = "__name__"
    order      = "ASCENDING"
  }

  timeouts {
    create = "60m"
  }
}

以下是日志:

Step #2: 
Step #2: Error: Error creating Index: googleapi: Error 409: too much contention on these datastore entities. please try again.
Step #2: 
Step #2:   on firestore.tf line 375,in resource "google_firestore_index" "job_config2_index":
Step #2:  375: resource "google_firestore_index" "job_config2_index" {
Step #2: 
Step #2: 
Finished Step #2

我该如何解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)