Hi,

I am trying to chase an issue in our code and it is being quite
difficult. We have seen two instances (see below) where we get the
same error. I have been trying to reproduce but it has been impossible
so far.I have several threads, some might be creating indices and
adding documents, others closing indices etc.  In the list this
message appear several times, in some cases it was a lucene bug (not
my case, I dont have millions of docs here) and in other it seems bad
multithreading. I have verified my multithreaded code for the 5th time
and all seems well synchronized.

So I am asking if somebody can give me any hint, maybe the fact that
the first number is always a 1 means something??  I suspect the issue
is when a new index is just created maybe.

java.lang.RuntimeException: after flush: fdx size mismatch: 1 docs vs
103 length in bytes of _2.fdx file exists?=true
org.apache.lucene.index.StoredFieldsWriter.closeDocStore(StoredFieldsWriter.java:97)
org.apache.lucene.index.DocFieldProcessor.closeDocStore(DocFieldProcessor.java:50)
org.apache.lucene.index.DocumentsWriter.closeDocStore(DocumentsWriter.java:380)
org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:581)
org.apache.lucene.index.IndexWriter.doFlushInternal(IndexWriter.java:4294)
org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:4192)
org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:4183)
org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2190)
org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2153)
org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2117)


java.lang.RuntimeException: after flush: fdx size mismatch: 1 docs vs
8457 length in bytes of _0.fdx file exists?=true ...

My env is vista, jdk1.6, lucene 2.9.1
thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to