commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39340] - [pool] Infinite loop in Evictor of GenericKeyedObjectPool
Date Wed, 19 Apr 2006 17:33:24 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39340





------- Additional Comments From sandymac@apache.org  2006-04-19 17:33 -------
I still cannot reproduce the problem. Can you create a JUnit test that actually
produces the problem and attach that to this issue?

Off topic:
>From that code fragment you seem to be subclassing GenericKeyedOP but I cannot
tell for sure. If so, why do you think you need to subclass GKOP?

Also, why do you explicitly set testOnBorrow to false? In my mind it seems to me
better to test on borrow so only valid objects are ever borrowed from the pool.
In the time between returning an object to the pool and it being borrowed again
it could have become invalid by virtue of whatever connection your are pooling
breaking. By not testing on borrow you have to do the work to make sure its'
still a valid connection when the pool should be able to do that for you.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message