[COMPASS-6195] Investigate changes in NODE-4689: Add support for tracking checked out connections Created: 12/Oct/22  Updated: 12/Jan/23  Resolved: 12/Jan/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Investigation Priority: Major - P3
Reporter: PM Bot Assignee: Unassigned
Resolution: Done Votes: 0
Labels: node-driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on NODE-4689 Add support for tracking checked out ... Closed
Related
is related to MONGOSH-1360 Simplify connection pool monkey-patch... Closed
Documentation Changes: Not Needed

 Description   
  • Store checked out connections in a Set on the connection pool class
  • Also consider refactoring to store other connection related properties in maps  (won't do)
    • kPending will not be changed, because when we increment kPending we don’t have a reference to a connection. We could consider storing a set of connectionIds instead of a counter in kPending but I think a counter suffices.
    • kCheckedOut will now be a Set
  • Expose the checked out connections with an internal getter so shell can access the connections.


 Comments   
Comment by Anna Henningsen [ 12/Jan/23 ]

See MONGOSH-1360 for actual work

Generated at Wed Feb 07 22:42:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.