[SERVER-57233] Reap LDAP connections inline if multithreading is not enabled Created: 26/May/21  Updated: 29/Oct/23  Resolved: 04/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.2.15, 4.4.7, 5.0.0-rc1

Type: Bug 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

Issue Links:
Backports
Depends
Related
is related to SERVER-55316 Disconnect LDAP connections out of line Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4, v4.2
Sprint: Security 2021-05-31, Security 2021-06-14
Participants:
Linked BF Score: 134

 Description   

SERVER-55316 ensured that all LDAP connections are reaped in a separate executor driven by another thread rather than inline. However, there is at least one occasion where we should reap the connection inline. This situation is when the LDAP manager's smoke test, performed during server startup before multithreading is enabled, fails and the connection is reaped. Not properly checking whether multithreading is enabled before reaping the connection results in a crash, so there should be an inline default in case the connection reap is occurring while the server is in a single-threaded state.



 Comments   
Comment by Githook User [ 21/Jun/21 ]

Author:

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

Message: SERVER-57233: Reap LDAP connections inline if multithreading is not enabled

(cherry picked from commit 1428577e1d1d0068d55b704403cd5bf004fa47d9)
(cherry picked from commit 353db849f225a65e531ad385167e5a1947ece8ae)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/25dd31a193c7bd28cb90e2a2bd90f04cc4452a7f

Comment by Githook User [ 14/Jun/21 ]

Author:

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

Message: SERVER-57233: Reap LDAP connections inline if multithreading is not enabled

(cherry picked from commit 1428577e1d1d0068d55b704403cd5bf004fa47d9)
Branch: v4.4
https://github.com/10gen/mongo-enterprise-modules/commit/353db849f225a65e531ad385167e5a1947ece8ae

Comment by Varun Ravichandran [ 11/Jun/21 ]

SERVER-55316 was also backported to 4.4, so BF-21300 resurfaced due to a 4.4 crash since this fix wasn't backported to 4.4. We should backport to 4.4 to prevent the crash from occurring there.

Comment by Githook User [ 08/Jun/21 ]

Author:

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

Message: SERVER-57233: Reap LDAP connections inline if multithreading is not enabled

(cherry picked from commit 1428577e1d1d0068d55b704403cd5bf004fa47d9)
Branch: v5.0
https://github.com/10gen/mongo-enterprise-modules/commit/22e3c3da2e156c8294340c9a5c16efc0c29ce1c6

Comment by Githook User [ 04/Jun/21 ]

Author:

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

Message: SERVER-57233: Reap LDAP connections inline if multithreading is not enabled
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/1428577e1d1d0068d55b704403cd5bf004fa47d9

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