lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: [JENKINS] Lucene-Solr-tests-only-3.x-java7 - Build # 1685 - Failure
Date Wed, 01 Feb 2012 01:05:25 GMT
Fix committed to branch_3x in r1238884.

This was caused by randomly generated test data containing character U+FFFF, which causes
trouble (hard-to-track-down bugs) for Lucene 3.x indexing; to avoid this, MockTokenizer.readCodePoint()
included an assertion that no character was U+FFFF.

Fixing all random text generators to avoid U+FFFF looked hard, so Robert suggested switching
from an assertion in MockTokenizer.readCodePoint() to throwing an AssumptionViolatedException,
which LuceneTestCase would catch and then not trigger a test failure for.

See https://issues.apache.org/jira/browse/LUCENE-3743 for more discussion, including adding
multi-threaded AssumptionViolatedException handling to LuceneTestCase.

Steve

> -----Original Message-----
> From: Steven A Rowe [mailto:sarowe@syr.edu]
> Sent: Tuesday, January 31, 2012 12:58 PM
> To: dev@lucene.apache.org
> Subject: RE: [JENKINS] Lucene-Solr-tests-only-3.x-java7 - Build # 1685 -
> Failure
> 
> I can reproduce with Java 6 on Windows 7:
> 
> > ant test -Dtestcase=HTMLStripCharFilterTest -Dtestmethod=testRandom -
> Dtests.seed=62f3a5fcada45acf:55437dfef0718356:-5202c7d6896fa2be -
> Dtests.multiplier=5 -Dargs="-Dfile.encoding=US-ASCII"
> 
>     [junit] The following exceptions were thrown by threads:
>     [junit] *** Thread: Thread-0 ***
>     [junit] java.lang.AssertionError
>     [junit]     at
> org.apache.lucene.analysis.MockTokenizer.readCodePoint(MockTokenizer.java:
> 125)
>     [junit]     at
> org.apache.lucene.analysis.MockTokenizer.incrementToken(MockTokenizer.java
> :109)
> 
> 
> I'm looking into it.
> 
> Steve
> 
> > -----Original Message-----
> > From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
> > Sent: Tuesday, January 31, 2012 8:53 AM
> > To: dev@lucene.apache.org
> > Subject: [JENKINS] Lucene-Solr-tests-only-3.x-java7 - Build # 1685 -
> > Failure
> >
> > Build: https://builds.apache.org/job/Lucene-Solr-tests-only-3.x-
> > java7/1685/
> >
> > 1 tests failed.
> > REGRESSION:
> > org.apache.lucene.analysis.charfilter.HTMLStripCharFilterTest.testRandom
> >
> > Error Message:
> > java.lang.AssertionError: Some threads threw uncaught exceptions!
> >
> > Stack Trace:
> > java.lang.RuntimeException: java.lang.AssertionError: Some threads threw
> > uncaught exceptions!
> > 	at
> > org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:571)
> > 	at
> >
> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.
> > java:147)
> > 	at
> >
> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.
> > java:50)
> > 	at
> >
> org.apache.lucene.util.LuceneTestCase.checkUncaughtExceptionsAfter(LuceneT
> > estCase.java:599)
> > 	at
> > org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:543)
> >
> >
> >
> >
> > Build Log (for compile errors):
> > [...truncated 10822 lines...]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org

Mime
View raw message