lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ziming Dong <dzm1016397...@gmail.com>
Subject lucene index program won't start after power failure
Date Wed, 14 Sep 2016 05:22:13 GMT
I have 6 machine and 6 index directories, each machine builds index into
one index directory. After power failure last night, two of those machine
can't start index program.

one error is

> INFO: 2016-09-14 12:31:38 [main]
> sewm.bdbox.search.InfomallIndexer$Builder:ignoreCollectionsFile(227):
> Loaded 2146 ignored collections from
> /mnt/HPT8_56T/infomall-index/index0/ignored_collections.txt
> ERROR: 2016-09-14 12:31:39 [main] sewm.bdbox.util.LogUtil:error(71):
> org.apache.lucene.index.IndexFormatTooOldException: Format version is not
> supported (resource
> BufferedChecksumIndexInput(MMapIndexInput(path="/mnt/HPT8_56T/infomall-index/index0/segments_5t3"))):
> 0 (needs to be between 1071082519 and 1071082519). This version of Lucene
> only supports indexes created with release 5.0 and later.
>         at
> org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:295)
>         at
> org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:284)
>         at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:910)
>         at
> sewm.bdbox.search.InfomallIndexer.<init>(InfomallIndexer.java:60)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer.<init>(ThreadedInfomallIndexer.java:28)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer.<init>(ThreadedInfomallIndexer.java:21)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer$Builder.build(ThreadedInfomallIndexer.java:72)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer.main(ThreadedInfomallIndexer.java:129)


another is

INFO: 2016-09-14 01:11:06 [main]
> sewm.bdbox.search.InfomallIndexer$Builder:ignoreCollectionsFile(227):
> Loaded 8575 ignored collections from
> /mnt/HPT8/infomall-index/index5/ignored_collections.txt
> ERROR: 2016-09-14 01:11:09 [main] sewm.bdbox.util.LogUtil:error(71):
> org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file
> truncated?): actual footer=0 vs expected footer=-1071082520
> (resource=MMapIndexInput(path="/mnt/HPT8/infomall-index/index5/_1kqn.cfs"))
>         at
> org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:448)
>         at
> org.apache.lucene.codecs.CodecUtil.retrieveChecksum(CodecUtil.java:433)
>         at
> org.apache.lucene.codecs.lucene50.Lucene50CompoundReader.<init>(Lucene50CompoundReader.java:86)
>         at
> org.apache.lucene.codecs.lucene50.Lucene50CompoundFormat.getCompoundReader(Lucene50CompoundFormat.java:71)
>         at
> org.apache.lucene.index.IndexWriter.readFieldInfos(IndexWriter.java:1016)
>         at
> org.apache.lucene.index.IndexWriter.getFieldNumberMap(IndexWriter.java:1033)
>         at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:938)
>         at
> sewm.bdbox.search.InfomallIndexer.<init>(InfomallIndexer.java:60)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer.<init>(ThreadedInfomallIndexer.java:28)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer.<init>(ThreadedInfomallIndexer.java:21)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer$Builder.build(ThreadedInfomallIndexer.java:72)
>         at
> sewm.bdbox.search.ThreadedInfomallIndexer.main(ThreadedInfomallIndexer.java:129)
>


it seems 1071082519 is a special number.

- -

Ziming Dong
*http://suiyuan2009.github.io/ <http://suiyuan2009.github.io/>*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message