lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Lucene Test Failure: org.apache.lucene.search.TestCachingWrapperFilter.testEnforceDeletions (from TestCachingWrapperFilter)
Date Tue, 24 Aug 2010 21:38:16 GMT
Wait -- it's a WeakHashMap right?  Entries should not be removed
unless the key no longer has any hard refs?

Mike

On Tue, Aug 24, 2010 at 5:34 PM, Uwe Schindler <uwe@thetaphi.de> wrote:
> Weh ad the same on hudson a few days ago. The problem is a too heavy GC
> (because if GC is very active it removes the entry from the cache and then
> this error occurs).
>
> This is a bug in the test. To test this correctly we can either:
> - during test replace WeakHashMap by a conventional HashMap (the map is
> package private, maybe we replace it in the test)
> - hold a reference to the cache entry during the test (that is the DocIdSet)
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Mark Miller [mailto:markrmiller@gmail.com]
>> Sent: Tuesday, August 24, 2010 10:33 PM
>> To: dev@lucene.apache.org
>> Subject: Lucene Test Failure:
>> org.apache.lucene.search.TestCachingWrapperFilter.testEnforceDeletions
>> (from TestCachingWrapperFilter)
>>
>> Error Message
>>
>> expected:<2> but was:<3>
>> Stacktrace
>>
>> junit.framework.AssertionFailedError: expected:<2> but was:<3>
>>       at
>>
> org.apache.lucene.search.TestCachingWrapperFilter.testEnforceDeletions(Test
>> CachingWrapperFilter.java:228)
>>       at
>> org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:380)
>>       at
>> org.apache.lucene.util.LuceneTestCase.run(LuceneTestCase.java:372)
>> Standard Output
>>
>> NOTE: random codec of testcase 'testEnforceDeletions' was: PreFlex
>> NOTE: random locale of testcase 'testEnforceDeletions' was: zh_CN
>> NOTE: random timezone of testcase 'testEnforceDeletions' was: Etc/GMT+4
>> NOTE: random seed of testcase 'testEnforceDeletions' was: -
>> 46038615367376670
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

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


Mime
View raw message