Maybe this failure is because we had a very good working GC that removed the hit from the WeakHashMap. The test is not safe. To really test it correct, the code should keep a reference to the cache contents here. So all tests using hitCount and miscount package private fields can easy fail when GC is hyper-active :-)
Keeping a reference could be easily done by assigning the DocIdSet to a local variable. Any ideas? ----- 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, August 20, 2010 9:57 AM > To: [email protected] > Subject: RE: Build failed in Hudson: Lucene-trunk #1265 > > Thats interesting: > > [junit] Testsuite: org.apache.lucene.search.TestCachingWrapperFilter > [junit] Testcase: > testEnforceDeletions(org.apache.lucene.search.TestCachingWrapperFilter): > FAILED > [junit] expected:<2> but was:<3> > [junit] junit.framework.AssertionFailedError: expected:<2> but was:<3> > [junit] at > org.apache.lucene.search.TestCachingWrapperFilter.__CLR2_6_39dlnno1dbx(T > estCachingWrapperFilter.java:229) > [junit] at > org.apache.lucene.search.TestCachingWrapperFilter.testEnforceDeletions(Test > CachingWrapperFilter.java:160) > [junit] at > org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:371) > [junit] at > org.apache.lucene.util.LuceneTestCase.run(LuceneTestCase.java:363) > [junit] > [junit] > [junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.072 sec > > A thread safety issue in the cache? > > ----- > 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, August 20, 2010 9:51 AM > > To: [email protected] > > Subject: Build failed in Hudson: Lucene-trunk #1265 > > > > See <https://hudson.apache.org/hudson/job/Lucene-trunk/1265/> > > > > ------------------------------------------ > > [...truncated 13371 lines...] > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:44: warning - Tag @link: reference not found: Directory > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:65: warning - Tag @link: reference not found: > > NativeFSLockFactory > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:56: warning - Tag @link: reference not found: > > NativeFSLockFactory > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:65: warning - Tag @link: reference not found: > > NativeFSLockFactory > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:44: warning - Tag @link: reference not found: Directory > > [javadoc] Building index for all the packages and classes... > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:44: warning - Tag @link: reference not found: Directory > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIO > > Linux > > Directory.java>:65: warning - Tag @link: reference not found: > > NativeFSLockFactory > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-misc/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: @lucene.internal > > [javadoc] 8 warnings > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/misc/lucene-misc-4.0-2010-08-20_04-06-26 > > - > > javadoc.jar> > > [echo] Building queries... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-queries> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package org.apache.lucene.search... > > [javadoc] Loading source files for package > > org.apache.lucene.search.regex... > > [javadoc] Loading source files for package > org.apache.lucene.search.similar... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Jak > > artaRegexpCapabilities.java>:35: warning - Tag @link: can't find > > prefix in org.apache.lucene.search.regex.JakartaRegexpCapabilities > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Jav > > aUtilRegexCapabilities.java>:33: warning - Tag @link: can't find > > prefix in org.apache.lucene.search.regex.JavaUtilRegexCapabilities > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Jav > > aUtilRegexCapabilities.java>:33: warning - Tag @link: can't find match > > in org.apache.lucene.search.regex.JavaUtilRegexCapabilities > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:44: warning - @param argument "string" is not a > > parameter name. > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexQuery.java>:34: warning - Tag @see: reference not found: > RegexTermEnum > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/simi > > lar/ > > MoreLikeThis.java>:526: warning - Tag @see: reference not found: > > org.apache.lucene.analysis.StopFilter#makeStopSet StopFilter.makeStopSet() > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] Building index for all the packages and classes... > > [javadoc] <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/contrib/queries/src/java/org/apache/lucene/search/rege > > x/Re > > gexCapabilities.java>:36: warning - Tag @link: reference not found: > > RegexTermEnum > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-queries/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [javadoc] 14 warnings > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/queries/lucene-queries-4.0-2010-08-20_04 > > -06- > > 26-javadoc.jar> > > [echo] Building queryparser... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-queryparser> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.analyzing... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.complexPhrase... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.builders... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.config... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.messages... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.nodes... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.parser... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.processors... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.core.util... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.ext... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.precedence... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.standard... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.standard.builders... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.standard.config... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.standard.nodes... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.standard.parser... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.standard.processors... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.surround.parser... > > [javadoc] Loading source files for package > > org.apache.lucene.queryParser.surround.query... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-queryparser/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/queryparser/lucene-queryparser-4.0-2010- > > 08- > > 20_04-06-26-javadoc.jar> > > [echo] Building remote... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-remote> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package org.apache.lucene.search... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-remote/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/remote/lucene-remote-4.0-2010-08-20_04-0 > > 6- > > 26-javadoc.jar> > > [echo] Building spatial... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-spatial> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package org.apache.lucene.spatial... > > [javadoc] Loading source files for package > > org.apache.lucene.spatial.geohash... > > [javadoc] Loading source files for package > > org.apache.lucene.spatial.geometry... > > [javadoc] Loading source files for package > > org.apache.lucene.spatial.geometry.shape... > > [javadoc] Loading source files for package > > org.apache.lucene.spatial.tier... > > [javadoc] Loading source files for package > > org.apache.lucene.spatial.tier.projections... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-spatial/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/spatial/lucene-spatial-4.0-2010-08-20_04 > > -06-26- > > javadoc.jar> > > [echo] Building spellchecker... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-spellchecker> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package > > org.apache.lucene.search.spell... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-spellchecker/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/spellchecker/lucene-spellchecker-4.0-201 > > 0-08- > > 20_04-06-26-javadoc.jar> > > [echo] Building swing... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-swing> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package > org.apache.lucene.swing.models... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-swing/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/swing/lucene-swing-4.0-2010-08-20_04-06- > > 26- > > javadoc.jar> > > [echo] Building wordnet... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-wordnet> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package org.apache.lucene.wordnet... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-wordnet/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/wordnet/lucene-wordnet-4.0-2010-08-20_04 > > -06- > > 26-javadoc.jar> > > [echo] Building xml-query-parser... > > > > javadocs: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-xml-query-parser> > > [javadoc] Generating Javadoc > > [javadoc] Javadoc execution > > [javadoc] Loading source files for package org.apache.lucene.xmlparser... > > [javadoc] Loading source files for package > > org.apache.lucene.xmlparser.builders... > > [javadoc] Constructing Javadoc information... > > [javadoc] Standard Doclet version 1.5.0_22 > > [javadoc] Building tree for all the packages and classes... > > [javadoc] Building index for all the packages and classes... > > [javadoc] Building index for all classes... > > [javadoc] Generating <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/api/contrib-xml-query-parser/stylesheet.css...> > > [javadoc] Note: Custom tags that were not seen: > > @lucene.experimental, @lucene.internal > > [jar] Building jar: > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/contrib/xml-query-parser/lucene-xml-query-parser > > -4.0- > > 2010-08-20_04-06-26-javadoc.jar> > > > > javadocs: > > [echo] Building ant... > > > > javadocs-index.html: > > [echo] Building benchmark... > > > > javadocs-index.html: > > > > javadocs-index.html: > > [echo] Building bdb... > > > > javadocs-index.html: > > [echo] Building bdb-je... > > > > javadocs-index.html: > > [echo] Building demo... > > > > javadocs-index.html: > > [echo] Building highlighter... > > > > javadocs-index.html: > > [echo] Building instantiated... > > > > javadocs-index.html: > > [echo] Building lucli... > > > > javadocs-index.html: > > [echo] Building memory... > > > > javadocs-index.html: > > [echo] Building misc... > > > > javadocs-index.html: > > [echo] Building queries... > > > > javadocs-index.html: > > [echo] Building queryparser... > > > > javadocs-index.html: > > [echo] Building remote... > > > > javadocs-index.html: > > [echo] Building spatial... > > > > javadocs-index.html: > > [echo] Building spellchecker... > > > > javadocs-index.html: > > [echo] Building swing... > > > > javadocs-index.html: > > [echo] Building wordnet... > > > > javadocs-index.html: > > [echo] Building xml-query-parser... > > > > javadocs-index.html: > > > > changes-to-html: > > [mkdir] Created dir: <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/changes> > > [copy] Copying 3 files to > > <https://hudson.apache.org/hudson/job/Lucene- > > trunk/ws/lucene/build/docs/changes> > > > > BUILD SUCCESSFUL > > Total time: 3 minutes 23 seconds > > + exit 1 > > [TASKS] Skipping publisher since build result is FAILURE Publishing > > Javadoc Archiving artifacts Recording test results Publishing Clover > > coverage > report... > > Publishing Clover HTML report... > > Publishing Clover XML report... > > Publishing Clover coverage 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
