[SERVER-10733] DistributedLock::unlock() can rarely throw Created: 10/Sep/13  Updated: 11/Jul/16  Resolved: 26/Sep/13

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

Type: Bug Priority: Major - P3
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The constructor for Scopeddbconnection is not exception-safe, and will throw if the pool is empty and a new connection can't be created. Wrap this error for DistributedLock::unlock(), since it is used in the destructor of scoped objects.



 Comments   
Comment by auto [ 26/Sep/13 ]

Author:

{u'username': u'gregstuder', u'name': u'Greg Studer', u'email': u'greg@10gen.com'}

Message: SERVER-10733 catch rare DistributedLock::unlock() errors on connection pool failure
Branch: master
https://github.com/mongodb/mongo/commit/f3a980467f6d1488e961c0311a438ba361bebc95

Generated at Thu Feb 08 03:23:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.