commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject [POOL] 1.5-RC2 soak test errors
Date Tue, 02 Jun 2009 19:03:54 GMT
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:

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

I've also seen the following, but only when the system is busy:

 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

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

View raw message