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 <[email protected]> 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: [email protected]
>
>
>> -----Original Message-----
>> From: Mark Miller [mailto:[email protected]]
>> Sent: Tuesday, August 24, 2010 10:33 PM
>> To: [email protected]
>> 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: [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]

Reply via email to