On 13/05/2011 11:20, Mark Thomas wrote:
> On 13/05/2011 07:25, ma...@apache.org wrote:
>> Phil Steitz <phil.ste...@gmail.com> wrote:
>>
>>> I saw this
>>> Failed tests:
>>>
>>> testMaxTotalInvariant(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool):
>>> Thread failed: 2
>>> java.lang.IllegalStateException: Returned object not currently part
>>> of this pool
>>>    at
>>> org.apache.commons.pool2.impl.GenericKeyedObjectPool.returnObject(GenericKeyedObjectPool.java:1158)
>>>    at
>>> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool$TestThread.run(TestGenericKeyedObjectPool.java:1582)
>>>    at java.lang.Thread.run(Thread.java:680)
>>>
>>> I also get these regularly when running load tests using [performance].
>>>
>>> I added some instrumentation to GKOP to dump out
>>> objectDeque.getAllObjects().size() and it is always 0 for the key
>>> when this happens. 
>>>
>>> Phil
> 
> I now have commons-performance running and can reproduce this. Hopefully
> a fix will be forthcoming shortly. I've looked once and can't see
> anything so as before, any help with this would be appreciated.

And 30s later I find the problem. The code that tracks currently in-use
keys needs a re-write.

Mark



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

Reply via email to