I found the reason for the problem:
try {
writer = new IndexWriter(dir, newIndexWriterConfig(
TEST_VERSION_CURRENT, new MockAnalyzer())
.setMergeScheduler(new SerialMergeScheduler()) // no threads!
);
// TODO: Make IndexWriter fail on open!
if (random.nextBoolean()) {
writer.optimize();
} else {
reader = writer.getReader();
}
fail("IndexWriter creation should not pass for "+unsupportedNames[i]);
} catch (IndexFormatTooOldException e) {
// pass
} finally {
if (reader != null) reader.close();
reader = null;
if (writer != null) writer.close();
writer = null;
}
This test checks that an old index somehow fails to open docstore. As
IndexWriter does not do this on open (see TODO), it trys to open Reader or
optimize(). Since Mike's commit for LUCENE-2618, the optimize call seems to be
somehow delayed until close() is called, where the Exception is thrown again.
We should simply ignore it there. So when close of already broken IndexWriter
fails, its not a problem.
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]
> -----Original Message-----
> From: Uwe Schindler [mailto:[email protected]]
> Sent: Friday, October 22, 2010 6:37 PM
> To: [email protected]
> Subject: RE: Lucene-Solr-tests-only-trunk - Build # 431 - Failure
>
> WTF????
>
> Did somebody mixup something in TestBackwards or its zip files? That’s
> impossible. Only if the SSDs on lucene.zones are now broken *g*
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: [email protected]
>
> > -----Original Message-----
> > From: Apache Hudson Server [mailto:[email protected]]
> > Sent: Friday, October 22, 2010 6:27 PM
> > To: [email protected]
> > Subject: Lucene-Solr-tests-only-trunk - Build # 431 - Failure
> >
> > Build:
> > http://hudson.zones.apache.org/hudson/job/Lucene-Solr-tests-only-
> > trunk/431/
> >
> > 1 tests failed.
> > REGRESSION:
> > org.apache.lucene.index.TestBackwardsCompatibility.testUnsupportedOldI
> > ndex
> > es
> >
> > Error Message:
> > Format version is not supported in file '_0.fdx': 1 (needs to be
> > between 2 and 2). This version of Lucene only supports indexes created
> > with release 3.0 and later.
> >
> > Stack Trace:
> > org.apache.lucene.index.IndexFormatTooOldException: Format version is
> > not supported in file '_0.fdx': 1 (needs to be between 2 and 2). This
> > version of Lucene only supports indexes created with release 3.0 and later.
> > at org.apache.lucene.index.FieldsReader.<init>(FieldsReader.java:109)
> > at
> >
> org.apache.lucene.index.SegmentReader$CoreReaders.openDocStores(Segmen
> > tReader.java:243)
> > at
> > org.apache.lucene.index.SegmentReader.get(SegmentReader.java:538)
> > at
> > org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:626)
> > at
> > org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3994)
> > at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3645)
> > at
> > org.apache.lucene.index.SerialMergeScheduler.merge(SerialMergeSchedule
> > r.j
> > ava:37)
> > at
> > org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1758)
> > at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1715)
> > at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1679)
> > at
> > org.apache.lucene.index.TestBackwardsCompatibility.testUnsupportedOldI
> > ndex
> > es(TestBackwardsCompatibility.java:186)
> > at
> > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(Lu
> > cen
> > eTestCase.java:882)
> > at
> > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(Lu
> > cen
> > eTestCase.java:848)
> >
> >
> >
> >
> > Build Log (for compile errors):
> > [...truncated 3080 lines...]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected] For
> > additional commands, e-mail: [email protected]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] For additional
> commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]