gpt4 book ai didi

Elasticsearch 分片卡在初始化状态

转载 作者:行者123 更新时间:2023-12-04 06:20:59 26 4
gpt4 key购买 nike

我停止了我的一个 Elasticsearch 节点,作为一种正常行为, Elasticsearch 开始将该节点上的分片重新定位到另一个节点。

但即使在 15 小时后它仍然停留在 INITIALIZING 状态。此外,该分片在两个节点之间波动,它会在一个节点上停留一段时间,然后自动转移到另一个节点并每隔几个小时继续这样做。

主要问题是它在这么多小时后仍处于 INITIALIZING 状态。

我使用的是 1.2.1 版本。

这个被卡住的碎片,它是一个副本。

我在日志中收到此错误:

[ERROR][index.engine.internal    ] [mynode] [myindex][3] failed to acquire searcher, source delete_by_query
java.lang.NullPointerException
[WARN ][index.engine.internal ] [mynode] [myindex][3] failed engine [deleteByQuery/shard failed on replica]
[WARN ][cluster.action.shard ] [mynode] [myindex][3] sending failed shard for [myindex][3], node[Sp3URfNVQlq2i4i3EjCakw], [R], s[INITIALIZING], indexUUID [kTikCHshQMKEQ_jAuWWWnw], reason [engine failure, message [deleteByQuery/shard failed on replica][EngineException[[myindex][3] failed to acquire searcher, source delete_by_query]; nested: NullPointerException; ]]

最佳答案

我得到的唯一修复是:

我从我的代码中停止了 deleteByQuery。

然后我删除了所有副本并重新创建了它们。一旦一切都稳定下来。

我在代码中重新启动了 deleteByQuery。

这就是它对我起作用的方式,并且一切都恢复正常。

关于Elasticsearch 分片卡在初始化状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25418094/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com