aliases_not_found_exception: Aliases missing
Elasticsearch의미
작업하려는 alias가 존재하지 않는다. 보통 존재하지 않는 alias를 제거하거나 그에 대해 작업할 때 반환된다.
원인
alias 이름의 철자가 틀렸거나, alias가 이미 삭제되었거나, _aliases API의 remove 작업이 연결된 적 없는 alias를 지정한 경우다. 와일드카드 패턴에 일치하는 alias가 없을 때도 나타난다.
해결 방법
기존 alias 목록 확인: GET _alias, 특정 인덱스는 GET my-index/_alias. 올바른 이름으로 작업을 재시도한다. 삭제 스크립트는 alias가 없어도 실패하지 않도록 작성하고, _aliases 일괄 작업에서는 조건부로 처리한다. alias를 원자적으로 재지정하려면 하나의 _aliases 요청에서 add와 remove를 함께 사용한다.
같은 데이터베이스의 다른 항목
- resource_not_found_exceptionresource_not_found_exception
- process_cluster_event_timeout_exceptionprocess_cluster_event_timeout_exception
- search_context_missing_exceptionNo search context found for id (scroll expired) (id에 대한 search context 없음)
- snapshot_missing_exceptionSnapshot is missing
- index_template_missing_exceptionIndex template is missing
- settings_exceptionInvalid settings
- shard_not_found_exceptionShard not found