resource_already_exists_exception: resource_already_exists_exception: index [index_name/uuid] already exists (HTTP 400)
ElasticsearchNe demek?
Oluşturulmak istenen index (veya kaynak) zaten var. Aynı ada sahip bir index bulunduğu için oluşturma isteği reddedildi. Eski sürümlerde index_already_exists_exception olarak da görülür.
Neden olur?
Aynı index'i iki kez oluşturmaya çalışmak, idempotent olmayan kurulum scriptleri, eşzamanlı oluşturma istekleri veya aynı adı farklı ayarlarla yeniden oluşturma girişimi.
Nasıl çözülür?
Index zaten varsa oluşturmaya gerek yoktur; devam edin. Yeniden oluşturmak gerekiyorsa önce silin (DELETE /index-adi) sonra oluşturun (dikkat: veri kaybı). Kurulum scriptlerini idempotent yapın: önce GET _cat/indices ile varlığını kontrol edin. Şema yönetimi için index template veya ILM/rollover kullanarak çakışmaları önleyin.
Aynı motorda diğer kayıtlar
- version_conflict_engine_exceptionversion_conflict_engine_exception: [_doc][id]: version conflict, current version [x] is different than the one provided [y] (HTTP 409)
- document_missing_exceptiondocument_missing_exception: [_doc][id]: document missing
- index_not_found_exceptionindex_not_found_exception: no such index [index_name] (HTTP 404)
- cluster_health_redcluster health status: RED / unassigned shards
- no_shard_available_action_exceptionno_shard_available_action_exception: No shard available for [...]
- es_rejected_execution_exceptiones_rejected_execution_exception: rejected execution of ... on ... (queue capacity ...) (HTTP 429)
- master_not_discovered_exceptionmaster_not_discovered_exception / MasterNotDiscoveredException