Mailing List Archive

DO NOT REPLY [Bug 14355] - ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355

ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments





------- Additional Comments From drissman@acm.org 2002-12-10 14:55 -------
Oops, it did it again... but this time I have line numbers:

java.lang.ArrayIndexOutOfBoundsException: 54 >= 5
at java.util.Vector.elementAt(Vector.java:412)
at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:134)
at org.apache.lucene.index.FieldsReader.doc(FieldsReader.java:100)
at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:189)
at org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:118)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:89)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:315)
at org.apache.lucene.index.IndexWriter.flushRamSegments(IndexWriter.java:265)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:144)
at
com.baseview.iqueserver.luceneindexer.IndexWriterThread.addFileToIndex(IndexWriterThread.java:427)
at
com.baseview.iqueserver.luceneindexer.IndexWriterThread.run(IndexWriterThread.java:82)

The last frame here that's mine is the addFileToIndex, which calls
IndexWriter.close().

This shows up after a week of use, but I'm trying to get a big enough database
to try to trigger it on demand. In the meanwhile, I hope the line numbers help.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 14355] - ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355

ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments





------- Additional Comments From cutting@apache.org 2002-12-10 17:48 -------
This looks like file corruption in a .fdt file. It might be interesting to try
to figure out which .fdt file and where in that file it occurs. Then you might
be able to figure out when that file was created, modified etc.

Do you ever have two IndexWriters open on the index at once? Locking should
make that impossible, but, if locking is broken (e.g., if you're accessing the
index over NFS) or disabled then you might be able to corrupt an index in this way.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 14355] - ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355

ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments





------- Additional Comments From drissman@acm.org 2002-12-11 19:24 -------
I only have one thread doing writing, and it only does it serially, processing a
queue of messages giving it documents to index, so it can't be a case of
conflicting writers. Still looking into it.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 14355] - ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14355

ArrayIndexOutOfBoundsException on IndexWriter.mergeSegments





------- Additional Comments From drissman@acm.org 2002-12-12 22:29 -------
I got the database that my boss was having problems with, and got the same stack
trace again on my machine. It seems reproducible enough, if you're willing to
wait three hours for it to get to a point of failure.

When the java.lang.ArrayIndexOutOfBoundsException exception is thrown, it's
aborting the entire thread, and I have a copy of the index as it existed at that
point. If anyone wants it they can have it; it's available as a tarball 350 megs
big.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>