问题: [7]: index [index], type [index], id [1569133], message [UnavailableShardsException[[index][1] [4] shardIt, [2] active : Timeout waiting for [1m], request: org.elasticsearch.action.bulk.BulkShardRequest@5989fa07]] 这是错误信息,当时集群状态为黄色,即副本没有分配。当时副本设置为...
"type":"unavailable_shards_exception", "reason":"[xxx][4] primary shard is not active Timeout: ..." } } } ] } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 查询挂起,和写入日志数据失败,均为该错误引起,这哪能忍,直接开干。 Round 1 错误原因也...
{"type"=>"unavailable_shards_exception","reason"=>"[xxx-20170925][5] primary shard is not active Timeout: [1m], request: [BulkShardRequest to [xxx-20170925] containing [19] requests]"})[2017-11-21T11:04:26,780][INFO][logstash.outputs.elasticsearch]retrying failed actionwithresponse ...
复制 [2017-11-21T11:04:26,780][INFO][logstash.outputs.elasticsearch]retrying failed actionwithresponse code:503({"type"=>"unavailable_shards_exception","reason"=>"[xxx-20170925][5] primary shard is not active Timeout: [1m], request: [BulkShardRequest to [xxx-20170925] containing [19] r...
org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable 参考这篇文章: https://blog.csdn.net/qq_25934401/article/details/108344875 依旧没有。4、最后重建索引发现是前几天有一次es集群离线,Kafka日志消息积压过多,导致数据...
requests.toArray(newBulkItemRequest[requests.size()]));//封装到不同的bulkshard request中bulkShardRequest.waitForActiveShards(bulkRequest.waitForActiveShards());//设置足够的活动分片bulkShardRequest.timeout(bulkRequest.timeout());//超时时间if(task !=null) { ...
{"root_cause":[{"type":"unavailable_shards_exception","reason":"at least one primary shard for the index [.security-profile-8] is unavailable"}],"type":"unavailable_shards_exception","reason":"at least one primary shard for the index [.security-profile-8] is unavailable"},"status":...
{returnactiveShardCount>=value;}// 失败if(activeShardCountFailure!=null){finishAsFailed(newUnavailableShardsException(……));return;}// 监听集群状态有变化后,重试voidretry(Exceptionfailure){observer.waitForNextChange(newClusterStateObserver.Listener(){@OverridepublicvoidonNewClusterState(ClusterStatestate)...
使用 _cat/shards API 检查未分配的分片,并使用 _cluster/reroute API 进行手动分片分配 Q:Elasticsearch 显示 "java.lang.IllegalStateException: There can be only one discovery plugin per node" 错误。 A:检查节点配置中的发现插件设置。确保只有一个发现插件被启用。 Q:Elasticsearch 显示 "ClusterBlock...
org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable 参考这篇文章: https://blog.***.net/qq_25934401/article/details/108344875 依旧没有。 4、最后重建索引发现是前几天有一次es集群离线,Kafka日志消息积压过多,导致数据恢复较慢。耐...