lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang, Lisheng" <>
Subject RE: Lucene indexed data corruption error
Date Sat, 30 Jun 2012 21:17:25 GMT
Thanks for such a quick help!

The java we use is:
java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

Best regards, Lisheng

-----Original Message-----
From: Uwe Schindler []
Sent: Saturday, June 30, 2012 1:52 PM
Subject: Re: Lucene indexed data corruption error

What JVM are you using? This looks like one of the Vint bugs we found in recent Oracle Java
versions, where we have workarounds since Lucene 3.1. See my blog post about the Java 7 bugs,
too, they are closely related:
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen

"Zhang, Lisheng" <> schrieb:


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,


View raw message