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 33265] - [pool] Number of tested objects in eviction runs of GenericObjectPool
Date Thu, 27 Jan 2005 10:51:18 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=33265>.
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=33265





------- Additional Comments From thomas@schuerger.com  2005-01-27 11:51 -------
There is another issue in the implementation of the evict() method:

Whenever the eviction cursor doesn't have a previous item (checked at each
iteration start of the eviction for-loop), the eviction for-loop makes a dummy
iteration which just resets the eviction cursor but doesn't do an eviction test.
Therefore, fewer objects are tested than what is configured in numTestsPerEviction.

To fix this, the corresponding "else" body should always be executed, regardless
whether the eviction cursor was reset or not.

-- 
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