unavailable_shards_exception: unavailable_shards_exception
Elasticsearch含义
操作所需的一个或多个分片不可用,因此请求(通常是写入)无法完成。找不到足够的活动分片副本。
原因
节点崩溃/离开导致分片未分配、超出磁盘水位线、缺少副本、未满足 wait_for_active_shards 条件,或集群健康状态为 red。
解决方法
检查集群和分片健康状况:GET _cluster/health 和 GET _cat/shards?v。调查分片未分配的原因:GET _cluster/allocation/explain。恢复宕机的节点、释放磁盘空间(水位线),并检查副本设置。必要时合理设置 wait_for_active_shards。
同一数据库的其他条目
- task_cancelled_exceptiontask_cancelled_exception: Task was cancelled / TaskCancelledException(任务已被取消)
- action_request_validation_exceptionaction_request_validation_exception
- index_closed_exceptionindex_closed_exception
- query_shard_exceptionquery_shard_exception
- script_exceptionscript_exception
- number_format_exceptionnumber_format_exception
- connect_transport_exceptionconnect_transport_exception