我有点怀疑你在刷屏

ES7.4.2版本,单分片大小超过lucene限制,这种情况下不删索引还有没有办法救

Elasticsearch | 作者 zmc | 发布于2022年06月18日 | 阅读数:2565

ES7.4.2版本,单分片大小超过lucene限制,这种情况下不删索引还有没有办法救?
 "details": "failed shard on node [cGR0rQ1-TOSTZ-A24SRN7g]: shard failure, reason [no-op origin[PRIMARY] seq#[218890483] failed at document level], failure IllegalArgumentException[number of documents in the index cannot exceed 2147483519]"
已邀请:

Charele - Cisco4321

赞同来自:

只能分分片或者分索引了。用reindex

Charele - Cisco4321

赞同来自:

[number of documents in the index cannot exceed 2147483519]
这个是在写索引(或者说写分片)时会出现的报错。
我想原因可能有两个:
 
1 你的ES系统里有一个进程(或者说某个设定),反复地往这个索引里写数据。这个分片刚启动好,就写,超过限制了,fail了。又尝试启动好,又写,,,如此反复。
找到有没有这种进程,停掉。
 
2 分片启动时是要恢复日志的,如果日志里有写操作,也要要往分片里写数据。
删除掉日志目录,就是丢掉日志里这一部分数据。
 
删除日志,可能会启动不起来,但这是另外一个问题,比较好解决。

要回复问题请先登录注册