Elasticsearch 抛出 resource_already_exists_exception
Elasticsearch throwing resource_already_exists_exception
我正在映射索引 rides_order_266。
弹性抛出异常resource_already_exists_exception。阅读异常消息后。看起来索引 rides_order_266 已经存在,但如果是这种情况,则弹性搜索会抛出异常 index_already_exists_exception。我对自己是对还是错感到困惑。有人可以解释异常消息吗?
Elasticsearch 版本:6.4.2
[resource_already_exists_exception] index [rides_order_266/aGTcXrUrTAOV12qxEHl9tQ] already exists, with { index_uuid=\"aGTcXrUrTAOV12qxEHl9tQ\" & index=\"rides_order_266\" }","path":"/rides_order_266","query":{},"body":"{\"settings\":{\"index\":{\"mapping.total_fields.limit\":70000,\"number_of_shards\":1,\"number_of_replicas\":0,\"refresh_interval\":\"1s\"}}
resource_already_exists_exception
是这个错误的新名称。它曾经是 index_already_exists_exception
,在 6.0 版本中已重命名,如您在 PR #21494.
中所见
进行该更改是为了防止每种不同的资源类型(索引、别名等)出现不同的异常。
因此,鉴于 rides_order_266
索引已经存在,您得到的结果完全没问题。
我正在映射索引 rides_order_266。 弹性抛出异常resource_already_exists_exception。阅读异常消息后。看起来索引 rides_order_266 已经存在,但如果是这种情况,则弹性搜索会抛出异常 index_already_exists_exception。我对自己是对还是错感到困惑。有人可以解释异常消息吗?
Elasticsearch 版本:6.4.2
[resource_already_exists_exception] index [rides_order_266/aGTcXrUrTAOV12qxEHl9tQ] already exists, with { index_uuid=\"aGTcXrUrTAOV12qxEHl9tQ\" & index=\"rides_order_266\" }","path":"/rides_order_266","query":{},"body":"{\"settings\":{\"index\":{\"mapping.total_fields.limit\":70000,\"number_of_shards\":1,\"number_of_replicas\":0,\"refresh_interval\":\"1s\"}}
resource_already_exists_exception
是这个错误的新名称。它曾经是 index_already_exists_exception
,在 6.0 版本中已重命名,如您在 PR #21494.
进行该更改是为了防止每种不同的资源类型(索引、别名等)出现不同的异常。
因此,鉴于 rides_order_266
索引已经存在,您得到的结果完全没问题。