lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Lisheng" <>
Subject Lucene indexed data corruption error
Date Sat, 30 Jun 2012 20:44:17 GMT
We have been using lucene 2.3.2 for years well (yes, we should upgrade).
Recently we encountered data corruption error when commiting IndexWriter:
background merge hit exception: _14b:c61262 _1ag:c11225 _1gb:c9411 _1gv:c905 _1gw:c50 _1gx:c50
_1gy:c50 _1gz:c50 _1h0:c31 into _1h1 [optimize] background merge hit exception: _14b:c61262 _1ag:c11225 _1gb:c9411 _1gv:c905
_1gw:c50 _1gx:c50 _1gy:c50 _1gz:c50 _1h0:c31 into _1h1 [optimize]
        at org.apache.lucene.index.IndexWriter.optimize(
        at org.apache.lucene.index.IndexWriter.optimize(
        at org.apache.lucene.index.IndexWriter.optimize(
Then we use CheckIndex tool to analyze and found one segment (out of 13) having problem:
    test: stored fields.......ERROR [field data are in wrong format:
unknown compression method]
org.apache.lucene.index.CorruptIndexException: field data are in wrong format:
unknown compression method
        at org.apache.lucene.index.FieldsReader.uncompress(
        at org.apache.lucene.index.FieldsReader.addField(
        at org.apache.lucene.index.FieldsReader.doc(
        at org.apache.lucene.index.SegmentReader.document(
        at org.apache.lucene.index.IndexReader.document(
        at org.apache.lucene.index.CheckIndex.testStoredFields(
        at org.apache.lucene.index.CheckIndex.checkIndex(
        at org.apache.lucene.index.CheckIndex.main(
Our stored fields are very simple (just id and short title, more fields are only for search).
Our data size is about 400MB and 83K documents. We started indexing from an 
empty folder. Also we have been using lucene 2.3.2 for years and this is the 1st
time to encounter this issue?
Indexer is running in a linux box, "uname -a" returns:
Linux <our box name> 2.6.32-342-ec2 #43-Ubuntu SMP Wed Jan 4 18:22:42 UTC 2012 x86_64
We really appreciate any guidance,
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message