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-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to