commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Hoffstätte (JIRA) <>
Subject [jira] Created: (POOL-89) Inconsistency with TestGenericKeyedObjectPool.testMaxTotalLRU
Date Mon, 30 Oct 2006 13:34:16 GMT
Inconsistency with TestGenericKeyedObjectPool.testMaxTotalLRU

                 Key: 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

While working on POOL-88 I noticed that *sometimes* testMaxTotalLRU fails:

junit.framework.AssertionFailedError: expected same:<a0> was not:<a5>
	at junit.framework.Assert.failNotSame(
	at junit.framework.Assert.assertSame(
	at junit.framework.Assert.assertSame(
	at org.apache.commons.pool.impl.TestGenericKeyedObjectPool.testMaxTotalLRU(

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:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message