[SERVER-35068] Implementation of StorageEngineLockFile on posix systems leaks file descriptors Created: 18/May/18  Updated: 29/Oct/23  Resolved: 30/May/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.1.1

Type: Bug Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The destructor of StorageEngineLockFile on posix systems doesn't close the lock file's file handle, leaking it. We don't normally notice, because we usually only release the handle at shutdown, but it can be noticed in unit tests that start up and shut down the storage engine repeatedly.



 Comments   
Comment by Githook User [ 30/May/18 ]

Author:

{'username': 'amschwerin', 'name': 'Andy Schwerin', 'email': 'schwerin@mongodb.com'}

Message: SERVER-35068 Properly release file descriptor in destructor of StorageEngineLockFile.
Branch: master
https://github.com/mongodb/mongo/commit/ba5d89097503ad1c9ddb8b58ac371a7c3c394d9d

Generated at Thu Feb 08 04:38:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.