commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: [POOL] 1.5-RC2 soak test errors
Date Wed, 03 Jun 2009 14:29:18 GMT
Trying to duplicate...

On Jun 2, 2009, at 3:03 PM, sebb wrote:

> I've been running the GKOP and GOP tests repeatedly, and there are
> some tests which still fail now and then:
>
> The following test fails regularly:
>
> testThreaded1(org.apache.commons.pool.impl.TestGenericObjectPool)
> Time elapsed: 6 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: Thread 18 failed:
> java.util.NoSuchElementException: Timeout waiting for idle object
>
> even on an otherwise idle system
>
> There are 20 threads competing for 15 objects, with a timeout of
> 1000ms; each thread may hold the object for 50ms. Not quite sure how
> this can cause the problem unless there is some unfairness in the
> allocation. The same test for GKOP fails much less often, which is
> interesting.
>
> I've also seen the following, but only when the system is busy:
>
> testEvictionOrder
> (org.apache.commons.pool.impl.TestGenericKeyedObjectPool)
> Time elapsed: 1.36 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<5> but was:<4>
>
>
> BTW, I added pool.clear(); followed by a check that numIdle == 0 to
> the tearDown() methods in TGOP and TGKOP, and have not yet seen an
> error, so at least that appears OK. This change has not yet been
> committed.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>


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


Mime
View raw message