[SERVER-59735] Mark connections as used for pooled LDAP connections Created: 01/Sep/21  Updated: 29/Oct/23  Resolved: 13/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Varun Ravichandran Assignee: Varun Ravichandran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Security 2021-09-06, Security 2021-09-20
Participants:

 Description   

Currently, connections used in the `LDAPConnectionFactory` only are marked as `success` or `failure` when they are done being used. This helps ensure that good connections are kept in the pool while those that result in errors are thrown out and not used. However, connections should also be marked as used via `indicateUsed()` immediately before each outbound network call to update when the connection was last used. This will improve performance by reducing the frequency of connection refreshes now that usage will be accurately tracked.

Something to note is that bind attempts sometimes require binding multiple times on the same connection if several passwords are provided for the bindDN. This may require rehashing the current manner in which connections are marked as failed for binds in order to be able to call `indicateUsed()` without error.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 21/Sep/21 ]

Author:

{'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}

Message: SERVER-59735: Mark pooled LDAP connections as used
Branch: SERVER-58852
https://github.com/10gen/mongo-enterprise-modules/commit/a0f1965e72f755097d3a92ad858ff712d8028672

Comment by Githook User [ 13/Sep/21 ]

Author:

{'name': 'Varun Ravichandran', 'email': 'varun.ravichandran@mongodb.com', 'username': 'varunravi98'}

Message: SERVER-59735: Mark pooled LDAP connections as used
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a0f1965e72f755097d3a92ad858ff712d8028672

Generated at Thu Feb 08 05:47:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.