DBAtlas · Database operations atlas

resource_already_exists_exception: resource_already_exists_exception: index [index_name/uuid] already exists (HTTP 400)

Elasticsearch

What does it mean?

The index (or resource) to be created already exists. The create request was rejected because an index with the same name exists. In older versions it also appears as index_already_exists_exception.

Why does it happen?

Trying to create the same index twice, non-idempotent setup scripts, concurrent create requests, or an attempt to recreate the same name with different settings.

How to fix it

If the index already exists, there is no need to create it; continue. If it must be recreated, delete it first (DELETE /index-name) and then create it (caution: data loss). Make setup scripts idempotent: check for existence first with GET _cat/indices. Prevent conflicts by using index templates or ILM/rollover for schema management.

Open in DBAtlas →

More from this engine