[SERVER-60246] log errno when mlock() fails Created: 27/Sep/21  Updated: 29/Oct/23  Resolved: 29/Sep/21

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 5.1 Desired
Fix Version/s: 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Sergey Galtsev (Inactive) Assignee: Sergey Galtsev (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2021-10-04
Participants:
Linked BF Score: 135

 Description   

In BF-22742, a crash happened due to failure to mlock(). It is unclear what an actual error was.

mlock documentation indicates that errno could be invoked to get failure code. This ticket is to implement said diagnostics and add it to the log message



 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 [ 28/Sep/21 ]

Author:

{'name': 'sergey.galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: SERVER-60246 Log errno when mlock() fails
Branch: master
https://github.com/mongodb/mongo/commit/fef4012ec5c4497738ea7cb93d5368ac45e29c3a

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