[OPENDJ-5723] Pending requests must be aborted when pooled Connection is closed Created: 15/Nov/18  Updated: 08/Nov/19

Status: Dev backlog
Project: OpenDJ
Component/s: core apis
Affects Version/s: 6.5.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Yannick Lecaillez Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The SDK's ConnectionPool should track the pending requests so that they can be cancelled when the virtual pooled Connection is closed.

A possible algorithm:

• Add the RequestHandle when the request is sent into a ConcurrentHashSet
• Remove the RequestHandle when the result for the request is received.
• On disconnection, invoke something like pendingRequests.forEach(RequestHandle::abandon)


Generated at Thu Aug 13 11:22:11 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.