Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.4.2
-
None
-
None
Description
On call to GenericKeyedObjectPool.returnObject() with testOnReturn set, when there are blocked GenericKeyedObjectPool.borrowObject() calls, I expect the blocked calls to unblock if returning this object successfully would free up a slot.
Instead, returnObject() exits without checking for pending borrowObject()'s.
This can result in a hung / timed out request despite the necessary resources to fill the request being available.
if (getTestOnReturn()) {
if (!factory.validateObject(key, p))
}
// blah blah blah
if (hasBorrowWaiters())
Attachments
Issue Links
- duplicates
-
POOL-310 Keyed pool usage description correction
- Closed