commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandy McArthur (JIRA)" <j...@apache.org>
Subject [jira] Updated: (POOL-89) Inconsistency with TestGenericKeyedObjectPool.testMaxTotalLRU
Date Tue, 31 Oct 2006 04:12:19 GMT
     [ http://issues.apache.org/jira/browse/POOL-89?page=all ]

Sandy McArthur updated POOL-89:
-------------------------------

    Priority: Minor  (was: Major)

> Inconsistency with TestGenericKeyedObjectPool.testMaxTotalLRU
> -------------------------------------------------------------
>
>                 Key: POOL-89
>                 URL: http://issues.apache.org/jira/browse/POOL-89
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Windows XP, Sun JDK 1.4.2_09
>            Reporter: Holger Hoffstätte
>         Assigned To: Sandy McArthur
>            Priority: Minor
>
> While working on POOL-88 I noticed that *sometimes* testMaxTotalLRU fails:
> junit.framework.AssertionFailedError: expected same:<a0> was not:<a5>
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.failNotSame(Assert.java:278)
> 	at junit.framework.Assert.assertSame(Assert.java:242)
> 	at junit.framework.Assert.assertSame(Assert.java:249)
> 	at org.apache.commons.pool.impl.TestGenericKeyedObjectPool.testMaxTotalLRU(TestGenericKeyedObjectPool.java:278)
> This seems to be a timing issue - Thread.sleep(10) is (in my experience) way too small
as interval to be reliable. I first suspected some obscure breakage with my patch but could
still reproduce this when simply running testMaxTotalLRU repeatedly against the virgin version.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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


Mime
View raw message