I opened https://issues.apache.org/jira/browse/LUCENE-4070 for this
On Sat, May 19, 2012 at 8:59 AM, Simon Willnauer <[email protected]> wrote: > this seems to be an issue that only happens with interrupts. I can see > how this can stream can be opened twice though. This patch should more > or less fix: > > diff --git > a/lucene/core/src/java/org/apache/lucene/store/CompoundFileWriter.java > b/lucene/core/src/java/org/apache/lucene/store/CompoundFileWriter.java > index 8134b8c..a5e3d1c 100644 > --- a/lucene/core/src/java/org/apache/lucene/store/CompoundFileWriter.java > +++ b/lucene/core/src/java/org/apache/lucene/store/CompoundFileWriter.java > @@ -118,16 +118,14 @@ final class CompoundFileWriter implements Closeable{ > > private synchronized IndexOutput getOutput() throws IOException { > if (dataOut == null) { > - IndexOutput dataOutput = null; > boolean success = false; > try { > - dataOutput = directory.createOutput(dataFileName, IOContext.DEFAULT); > - dataOutput.writeVInt(FORMAT_CURRENT); > - dataOut = dataOutput; > + dataOut = directory.createOutput(dataFileName, IOContext.DEFAULT); > + dataOut.writeVInt(FORMAT_CURRENT); > success = true; > } finally { > if (!success) { > - IOUtils.closeWhileHandlingException(dataOutput); > + IOUtils.closeWhileHandlingException(dataOut); > } > } > } > > any objections? > > On Sat, May 19, 2012 at 7:57 AM, <[email protected]> wrote: >> See >> <http://jenkins.sd-datasolutions.de/job/Lucene-Solr-tests-only-trunk/289/> >> >> ------------------------------------------ >> [...truncated 1359 lines...] >> [junit4] Suite: org.apache.lucene.index.TestTermVectorsReader >> [junit4] Completed on J0 in 0.06s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestSearcherManager >> [junit4] Completed on J0 in 15.70s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestPagedBytes >> [junit4] Completed on J0 in 2.05s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.analysis.TestNumericTokenStream >> [junit4] Completed on J0 in 0.01s, 4 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestCloseableThreadLocal >> [junit4] Completed on J0 in 0.01s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestTermsEnum >> [junit4] Completed on J1 in 8.36s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.store.TestMultiMMap >> [junit4] Completed on J0 in 6.20s, 5 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestDeletionPolicy >> [junit4] Completed on J1 in 4.18s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestDirectoryReaderReopen >> [junit4] Completed on J0 in 1.84s, 5 tests >> [junit4] >> [junit4] Suite: >> org.apache.lucene.index.TestPersistentSnapshotDeletionPolicy >> [junit4] Completed on J0 in 2.57s, 14 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestIndexWriterMerging >> [junit4] Completed on J1 in 4.85s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.store.TestBufferedIndexInput >> [junit4] Completed on J0 in 0.94s, 4 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestIndexWriterForceMerge >> [junit4] Completed on J1 in 0.99s, 4 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.analysis.TestMockAnalyzer >> [junit4] Completed on J1 in 1.95s, 9 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestLongPostings >> [junit4] Completed on J1 in 3.46s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestSnapshotDeletionPolicy >> [junit4] Completed on J1 in 1.32s, 8 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.spans.TestSpanExplanations >> [junit4] Completed on J1 in 0.27s, 31 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.store.TestHugeRamFile >> [junit4] Completed on J1 in 0.66s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestRollingUpdates >> [junit4] Completed on J1 in 2.28s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestOmitTf >> [junit4] Completed on J1 in 0.29s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestSegmentReader >> [junit4] Completed on J1 in 0.55s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestIndexWriterNRTIsCurrent >> [junit4] Completed on J1 in 5.53s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestMultiPhraseQuery >> [junit4] IGNORED 0.00s J1 | TestMultiPhraseQuery.testMultiSloppyWithRepeats >> [junit4] > Cause: Annotated @Ignore() >> [junit4] Completed on J1 in 0.16s, 16 tests, 1 skipped >> [junit4] >> [junit4] Suite: org.apache.lucene.util.automaton.TestDeterminism >> [junit4] Completed on J1 in 0.73s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestCrash >> [junit4] Completed on J1 in 0.32s, 5 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestStressAdvance >> [junit4] Completed on J0 in 20.11s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestCustomNorms >> [junit4] Completed on J1 in 0.56s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.store.TestCopyBytes >> [junit4] Completed on J1 in 0.84s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestDocumentsWriterDeleteQueue >> [junit4] Completed on J1 in 0.11s, 5 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestConsistentFieldNumbers >> [junit4] Completed on J0 in 1.78s, 4 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestTermVectors >> [junit4] Completed on J1 in 0.21s, 11 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestFlex >> [junit4] Completed on J0 in 0.09s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestFilteredQuery >> [junit4] Completed on J1 in 0.15s, 9 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestDocumentWriter >> [junit4] Completed on J1 in 0.15s, 7 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestCrashCausesCorruptIndex >> [junit4] Completed on J1 in 0.09s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.search.spans.TestFieldMaskingSpanQuery >> [junit4] IGNOR/A 0.00s J0 | TestFieldMaskingSpanQuery.testSimple2 >> [junit4] > Assumption #1: Broken scoring: LUCENE-3723 >> [junit4] IGNOR/A 0.00s J0 | TestFieldMaskingSpanQuery.testSpans2 >> [junit4] > Assumption #1: Broken scoring: LUCENE-3723 >> [junit4] Completed on J0 in 0.69s, 11 tests, 2 skipped >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestRegexpRandom >> [junit4] Completed on J0 in 0.08s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.util.junitcompat.TestReproduceMessage >> [junit4] Completed on J1 in 0.19s, 21 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestFuzzyQuery >> [junit4] Completed on J1 in 0.11s, 5 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.automaton.TestCompiledAutomaton >> [junit4] Completed on J0 in 0.30s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestParallelAtomicReader >> [junit4] Completed on J0 in 0.14s, 6 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.spans.TestSpansAdvanced2 >> [junit4] Completed on J1 in 0.43s, 4 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestIdentityHashSet >> [junit4] Completed on J0 in 0.10s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestCheckIndex >> [junit4] Completed on J1 in 0.03s, 2 tests >> [junit4] >> [junit4] Suite: >> org.apache.lucene.util.junitcompat.TestSetupTeardownChaining >> [junit4] Completed on J0 in 0.01s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestWildcardRandom >> [junit4] Completed on J0 in 0.11s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.util.automaton.TestSpecialOperations >> [junit4] Completed on J1 in 0.31s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.search.spans.TestNearSpansOrdered >> [junit4] Completed on J0 in 0.07s, 10 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestTopDocsCollector >> [junit4] Completed on J1 in 0.05s, 8 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.spans.TestSpansAdvanced >> [junit4] Completed on J0 in 0.02s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestDocCount >> [junit4] Completed on J1 in 0.05s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestSameTokenSamePosition >> [junit4] Completed on J0 in 0.02s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestFilteredSearch >> [junit4] Completed on J1 in 0.03s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestElevationComparator >> [junit4] Completed on J0 in 0.01s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestBooleanScorer >> [junit4] Completed on J1 in 0.02s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestMatchAllDocsQuery >> [junit4] Completed on J0 in 0.01s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestTermScorer >> [junit4] Completed on J1 in 0.02s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestSortedVIntList >> [junit4] Completed on J0 in 0.03s, 19 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.codecs.pulsing.TestPulsingReuse >> [junit4] Completed on J1 in 0.01s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestNot >> [junit4] Completed on J0 in 0.01s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestDocIdSet >> [junit4] Completed on J1 in 0.01s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestReaderClosed >> [junit4] Completed on J0 in 0.02s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestSimilarity >> [junit4] Completed on J1 in 0.03s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestAttributeSource >> [junit4] Completed on J0 in 0.01s, 5 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestDocBoost >> [junit4] Completed on J1 in 0.01s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestTwoPhaseCommitTool >> [junit4] Completed on J0 in 0.01s, 4 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestFieldInfos >> [junit4] Completed on J1 in 0.01s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.search.TestScoreCachingWrappingScorer >> [junit4] Completed on J0 in 0.01s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestVirtualMethod >> [junit4] Completed on J1 in 0.01s, 2 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestNoMergeScheduler >> [junit4] Completed on J0 in 0.01s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestNamedSPILoader >> [junit4] Completed on J1 in 0.01s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.TestAssertions >> [junit4] Completed on J0 in 0.01s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.util.TestBytesRef >> [junit4] Completed on J1 in 0.01s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.store.TestByteArrayDataInput >> [junit4] Completed on J1 in 0.01s, 1 test >> [junit4] >> [junit4] Suite: org.apache.lucene.index.TestIndexInput >> [junit4] Completed on J0 in 0.43s, 3 tests >> [junit4] >> [junit4] Suite: org.apache.lucene.util.junitcompat.TestBeforeAfterOverrides >> [junit4] Completed on J1 in 0.02s, 2 tests >> [junit4] >> [junit4] JVM J0: 0.41 .. 356.87 = 356.46s >> [junit4] JVM J1: 0.63 .. 356.87 = 356.24s >> [junit4] Execution time total: 5 minutes 56 seconds >> [junit4] Tests summary: 298 suites, 1677 tests, 1 error, 14 ignored (13 >> assumptions) >> >> BUILD FAILED >> /mnt/ssd/jenkins/workspace/Lucene-Solr-tests-only-trunk/checkout/build.xml:29: >> The following error occurred while executing this line: >> /mnt/ssd/jenkins/workspace/Lucene-Solr-tests-only-trunk/checkout/lucene/build.xml:50: >> The following error occurred while executing this line: >> /mnt/ssd/jenkins/workspace/Lucene-Solr-tests-only-trunk/checkout/lucene/common-build.xml:1019: >> The following error occurred while executing this line: >> /mnt/ssd/jenkins/workspace/Lucene-Solr-tests-only-trunk/checkout/lucene/common-build.xml:745: >> There were test failures: 298 suites, 1677 tests, 1 error, 14 ignored (13 >> assumptions) >> >> Total time: 6 minutes 13 seconds >> Build step 'Execute shell' marked build as failure >> Archiving artifacts >> Recording test results >> >> --------------------------------------------------------------------- >> 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]
