Issue Details (XML | Word | Printable)

Key: POOL-139
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Sebb
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Pool

StackKeyedObjectPool.getNumActive() needs to be synchronized

Created: 20/May/09 11:53 PM   Updated: 19/Jun/09 04:08 PM
Return to search
Component/s: None
Affects Version/s: 1.4
Fix Version/s: 1.5

Time Tracking:
Not Specified

Resolution Date: 26/May/09 08:46 PM


 Description  « Hide
StackKeyedObjectPool.getNumActive() needs to be synchronized.

All the writes to _totActive are synch., the reads need to be also.

Note that the corresponding method in StackObjectPool is already synch.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #778880 Tue May 26 20:46:22 UTC 2009 markt Fix POOL-139. Make StackKeyedObjectPool._totActive thread safe
Files Changed
MODIFY /commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java

Mark Thomas added a comment - 26/May/09 08:46 PM
Thanks for the report.

Mark Thomas made changes - 26/May/09 08:46 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Fix Version/s 1.5 [ 12312915 ]
Status Open [ 1 ] Resolved [ 5 ]
Repository Revision Date User Message
ASF #778934 Wed May 27 00:25:34 UTC 2009 psteitz Added POOL-139.
Files Changed
MODIFY /commons/proper/pool/trunk/xdocs/changes.xml

Phil Steitz added a comment - 19/Jun/09 04:08 PM
Fixed in 1.5 release.

Phil Steitz made changes - 19/Jun/09 04:08 PM
Status Resolved [ 5 ] Closed [ 6 ]