lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Build failed in Hudson: Lucene-trunk #1009
Date Sun, 15 Nov 2009 12:40:19 GMT
Yeah it's a thread safety intermittent sort of thing.  The main thread
is double-interrupt()ing the child thread before the child thread
succeeds in raising & catching the ThreadInterruptedException from the
first interrupt().

I'm trying to fix it but it's proving devilish ;)

Mike

On Sun, Nov 15, 2009 at 7:10 AM, Uwe Schindler <uwe@thetaphi.de> wrote:
> ... and now, also the trunk variant passes... very strange. If you run the
> test alone, it passes, if the whole suite it breaks.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Michael McCandless [mailto:lucene@mikemccandless.com]
>> Sent: Sunday, November 15, 2009 11:37 AM
>> To: java-dev@lucene.apache.org
>> Subject: Re: Build failed in Hudson: Lucene-trunk #1009
>>
>> Hmmm... the failure is from LUCENE-2053.  The test asserts that on
>> getting a ThreadInterruptedException, the interrupt status of the
>> thread is cleared, but in this case it's not.
>>
>>     [junit] ------------- Standard Output ---------------
>>     [junit] FAILED; InterruptedException hit but thread.interrupted() was
>> true
>>     [junit] java.lang.InterruptedException
>>     [junit]   at java.lang.Object.wait(Native Method)
>>     [junit]   at java.lang.Object.wait(Object.java:474)
>>     [junit]   at
>> org.apache.lucene.index.ConcurrentMergeScheduler.merge(ConcurrentMergeSche
>> duler.java:199)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2468)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2463)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2459)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3483)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3372)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3435)
>>     [junit]   at
>> org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3413)
>>     [junit]   at
>> org.apache.lucene.index.TestIndexWriter$IndexerThreadInterrupt.run(TestInd
>> exWriter.java:4386)
>>     [junit] ------------- ---------------- ---------------
>>     [junit] Testcase:
>> testThreadInterruptDeadlock(org.apache.lucene.index.TestIndexWriter):
>>       FAILED
>>     [junit] null
>>     [junit] junit.framework.AssertionFailedError
>>     [junit]   at
>> org.apache.lucene.index.TestIndexWriter.testThreadInterruptDeadlock(TestIn
>> dexWriter.java:4458)
>>     [junit]   at
>> org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:208)
>>
>> I think it's a bug in the test -- the test is double-interrupting the
>> thread before letting the thread catch the first interrupt.  I'll fix.
>>
>> Mike
>>
>> On Sat, Nov 14, 2009 at 11:04 PM, Apache Hudson Server
>> <hudson@hudson.zones.apache.org> wrote:
>> > See <http://hudson.zones.apache.org/hudson/job/Lucene-
>> trunk/1009/changes>
>> >
>> > Changes:
>> >
>> > [uschindler] LUCENE-2052: add varargs where possible
>> >
>> > [simonw] LUCENE-2064: Highlighter support all MultiTermQuery subclasses
>> without explicit casts - previous commit did not contain final patch due
>> to JIRA AM / PM issue
>> >
>> > [mikemccand] LUCENE-2050: add eg basicNRT.alg
>> >
>> > [simonw] LUCENE-2066: Add Highlighter test for RegexQuery
>> >
>> > [simonw] LUCENE-2064: Highlighter support all MultiTermQuery subclasses
>> without explicit casts
>> >
>> > [mikemccand] LUCENE-2053: throw ThreadInterruptedException when the
>> thread is interrupt()d
>> >
>> > [mikemccand] LUCENE-2060: change CMS's default maxThreadCount from 3 to
>> 1
>> >
>> > [mikemccand] LUCENE-2050: enhance contrib/benchmark for running NRT
>> tests
>> >
>> > ------------------------------------------
>> > [...truncated 20473 lines...]
>> >    [junit] ------------- ---------------- ---------------
>> >    [junit] Testsuite: org.apache.lucene.search.TestSetNorm
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.27 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestSimilarity
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.104 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestSimpleExplanations
>> >    [junit] Tests run: 53, Failures: 0, Errors: 0, Time elapsed: 22.189
>> sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.TestSimpleExplanationsOfNonMatches
>> >    [junit] Tests run: 53, Failures: 0, Errors: 0, Time elapsed: 3.547
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestSloppyPhraseQuery
>> >    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 5.267 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestSort
>> >    [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 15.312
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestSpanQueryFilter
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.46 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTermRangeFilter
>> >    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 14.519
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTermRangeQuery
>> >    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 2.772 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTermScorer
>> >    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.05 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTermVectors
>> >    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 6.93 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestThreadSafe
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 8.115 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTimeLimitingCollector
>> >    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 19.96 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTopDocsCollector
>> >    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.88 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestTopScoreDocCollector
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.95 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.TestWildcard
>> >    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 1.575 sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.function.TestCustomScoreQuery
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 200.092
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.function.TestDocValues
>> >    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.913 sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.function.TestFieldScoreQuery
>> >    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 10.849
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.function.TestOrdValues
>> >    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 5.743 sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.payloads.TestPayloadNearQuery
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 5.439 sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.payloads.TestPayloadTermQuery
>> >    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 19.241
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.spans.TestBasics
>> >    [junit] Tests run: 20, Failures: 0, Errors: 0, Time elapsed: 75.783
>> sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.spans.TestFieldMaskingSpanQuery
>> >    [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 17.91
>> sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.spans.TestNearSpansOrdered
>> >    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 4.93 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.spans.TestPayloadSpans
>> >    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 17.971
>> sec
>> >    [junit]
>> >    [junit] ------------- Standard Output ---------------
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:2
>> >    [junit] doc:0 s:3 e:6 one:Entity:3
>> >    [junit] doc:0 s:3 e:6 three:Noise:5
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:3
>> >    [junit] doc:0 s:0 e:3 yy:Noise:2
>> >    [junit] doc:0 s:0 e:3 xx:Entity:0
>> >    [junit] doc:0 s:0 e:3 rr:Noise:1
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:3
>> >    [junit] doc:1 s:0 e:4 rr:Noise:3
>> >    [junit] doc:1 s:0 e:4 yy:Noise:1
>> >    [junit] doc:1 s:0 e:4 xx:Entity:0
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:3
>> >    [junit] doc:0 s:0 e:3 xx:Entity:0
>> >    [junit] doc:0 s:0 e:3 yy:Noise:2
>> >    [junit] doc:0 s:0 e:3 rr:Noise:1
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:3
>> >    [junit] doc:0 s:0 e:3 xx:Entity:0
>> >    [junit] doc:0 s:0 e:3 rr:Noise:1
>> >    [junit] doc:0 s:0 e:3 yy:Noise:2
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:3
>> >    [junit] doc:1 s:0 e:4 xx:Entity:0
>> >    [junit] doc:1 s:0 e:4 yy:Noise:1
>> >    [junit] doc:1 s:0 e:4 rr:Noise:3
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:3
>> >    [junit] doc:2 s:0 e:5 pp:Noise:3
>> >    [junit] doc:2 s:0 e:5 ss:Noise:2
>> >    [junit] doc:2 s:0 e:5 qq:Noise:1
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:8
>> >    [junit] doc:3 s:0 e:11 ten:Noise:9
>> >    [junit] doc:3 s:0 e:11 one:Entity:0
>> >    [junit] doc:3 s:0 e:11 six:Noise:5
>> >    [junit] doc:3 s:0 e:11 two:Noise:1
>> >    [junit] doc:3 s:0 e:11 five:Noise:4
>> >    [junit] doc:3 s:0 e:11 nine:Noise:8
>> >    [junit] doc:3 s:0 e:11 eleven:Noise:10
>> >    [junit] doc:3 s:0 e:11 three:Noise:2
>> >    [junit]
>> >    [junit] Spans Dump --
>> >    [junit] payloads for span:8
>> >    [junit] doc:4 s:0 e:11 six:Noise:6
>> >    [junit] doc:4 s:0 e:11 nine:Noise:0
>> >    [junit] doc:4 s:0 e:11 one:Entity:1
>> >    [junit] doc:4 s:0 e:11 five:Noise:5
>> >    [junit] doc:4 s:0 e:11 three:Noise:3
>> >    [junit] doc:4 s:0 e:11 ten:Noise:10
>> >    [junit] doc:4 s:0 e:11 two:Noise:2
>> >    [junit] doc:4 s:0 e:11 eleven:Noise:9
>> >    [junit] match:a:Noise:10
>> >    [junit] match:k:Noise:11
>> >    [junit] Num payloads:1
>> >    [junit] rr:Noise:1
>> >    [junit] ------------- ---------------- ---------------
>> >    [junit] Testsuite:
>> org.apache.lucene.search.spans.TestSpanExplanations
>> >    [junit] Tests run: 31, Failures: 0, Errors: 0, Time elapsed: 20.943
>> sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.search.spans.TestSpanExplanationsOfNonMatches
>> >    [junit] Tests run: 31, Failures: 0, Errors: 0, Time elapsed: 1.504
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.spans.TestSpans
>> >    [junit] Tests run: 25, Failures: 0, Errors: 0, Time elapsed: 12.875
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.spans.TestSpansAdvanced
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.955 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.search.spans.TestSpansAdvanced2
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 2.859 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestBufferedIndexInput
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 47.287
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestDirectory
>> >    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.748 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestFileSwitchDirectory
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.32 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestHugeRamFile
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 6.25 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestLock
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.763 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestLockFactory
>> >    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 9.534 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestRAMDirectory
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 4.116 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.store.TestWindowsMMap
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.343 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestAttributeSource
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.854 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestBitVector
>> >    [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 5.713 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestCloseableThreadLocal
>> >    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.587 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestFieldCacheSanityChecker
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 13.127
>> sec
>> >    [junit]
>> >    [junit] Testsuite:
>> org.apache.lucene.util.TestIndexableBinaryStringTools
>> >    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 9.15 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestNumericUtils
>> >    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 1.033 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestOpenBitSet
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 3.25 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestPriorityQueue
>> >    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.847 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestRamUsageEstimator
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.369 sec
>> >    [junit]
>> >    [junit] ------------- Standard Output ---------------
>> >    [junit] size:56
>> >    [junit] size:60
>> >    [junit] size:48
>> >    [junit] size:202
>> >    [junit] ------------- ---------------- ---------------
>> >    [junit] Testsuite: org.apache.lucene.util.TestSmallFloat
>> >    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.577 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestSortedVIntList
>> >    [junit] Tests run: 18, Failures: 0, Errors: 0, Time elapsed: 0.397
>> sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestStringHelper
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.484 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestStringIntern
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 48.83 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.TestVersion
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.399 sec
>> >    [junit]
>> >    [junit] Testsuite: org.apache.lucene.util.cache.TestSimpleLRUCache
>> >    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.499 sec
>> >    [junit]
>> >
>> > BUILD FAILED
>> > <http://hudson.zones.apache.org/hudson/job/Lucene-trunk/ws/trunk/common-
>> build.xml>:442: The following error occurred while executing this line:
>> > <http://hudson.zones.apache.org/hudson/job/Lucene-trunk/ws/trunk/common-
>> build.xml>:435: Tests failed!
>> >
>> > Total time: 33 minutes 35 seconds
>> > Publishing Javadoc
>> > Archiving artifacts
>> > Recording test results
>> > Publishing Clover coverage report...
>> > No Clover report will be published due to a Build Failure
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> > For additional commands, e-mail: java-dev-help@lucene.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

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


Mime
View raw message