lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: trying to resolve error: after flush: fdx size mismatch
Date Wed, 14 Apr 2010 23:47:00 GMT
Not good!

Can you describe how your threads work with Lucene?

Is this just a local filesystem (disk) under vista?

Mike

On Wed, Apr 14, 2010 at 7:41 AM, jm <jmuguruza@gmail.com> wrote:
> 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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

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


Mime
View raw message