gpt4 book ai didi

elasticsearch - Elasticsearch索引已损坏

转载 作者:行者123 更新时间:2023-12-02 22:41:16 25 4
gpt4 key购买 nike

我从elasticsearch框中获取以下日志:

org.apache.lucene.index.CorruptIndexException: [myindex][2] Preexisting corrupted index [corrupted_5Y_pGXmYQOG5PGlZURWqxw] caused by: CorruptIndexException[checksum failed (hardware problem?) : expected=9cf1207c actual=4eda74a3 (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/mnt/vol1/myindex/nodes/0/myindex/index/2/index/_3758.fdt")))]
org.apache.lucene.index.CorruptIndexException: checksum failed (hardware problem?) : expected=9cf1207c actual=4eda74a3 (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/mnt/vol1/my/indexnodes/0/indices/myindex/2/index/_3758.fdt")))
at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:211)
at org.apache.lucene.codecs.CodecUtil.checksumEntireFile(CodecUtil.java:268)
at org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.checkIntegrity(CompressingStoredFieldsReader.java:535)
at org.apache.lucene.index.SegmentReader.checkIntegrity(SegmentReader.java:624)
at org.apache.lucene.index.SegmentMerger.<init>(SegmentMerger.java:61)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4158)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3768)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:405)
at org.apache.lucene.index.TrackingConcurrentMergeScheduler.doMerge(TrackingConcurrentMergeScheduler.java:106)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482)

at org.elasticsearch.index.store.Store.failIfCorrupted(Store.java:452)
at org.elasticsearch.index.store.Store.failIfCorrupted(Store.java:433)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:725)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:578)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:182)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:431)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

谁能说出解决方法?
此外,减少此类问题的最佳实践是什么?

我以前也遇到过类似的问题,必须删除副本盒内容并将其重新分配给群集。然后我修复了几天,但今天又重新出现了。

编辑:
问题是所有的 flex 搜索框都共享同一个硬盘,因此当多个副本尝试在同一磁盘位置上写入时,磁盘崩溃了。这样做是错误的,现在我为每个副本创建了单独的磁盘。

最佳答案

这取决于您使用的ES版本。在1.3.2之前,您可以尝试set the indices recovery compression to false

我在1.3.2上遇到了此异常。原因是磁盘已满。一些碎片在一段时间后恢复了,有些则没有。重新索引帮助。

关于elasticsearch - Elasticsearch索引已损坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28275920/

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