在3节点集群中(所有节点都符合主节点),主节点离开集群,然后在一小时后重新加入 . 很快,所有主要和次要分片(分片9)都变为未分配索引 .

我也看到来自gateway.local的以下日志:[index_name] [9]:not allocation,number_of_allocated_shards_found [1],required_number [2]

根据_cluster / health API,分片9的所有主分片和辅助分片都是未分配的 .

为什么日志和群集运行状况输出中存在这样的不匹配?根据[gateway.local]日志,分配了1个分片,但_custer / health API表示所有主分片和辅助分片都未分配 .