[SERVER-13614] distlock_test.cpp doesn't handle connectivity exceptions Created: 16/Apr/14  Updated: 11/Jul/16  Resolved: 08/May/14

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 2.7.1

Type: Bug Priority: Minor - P4
Reporter: Greg Studer Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

DistributedLock::lock_try() can throw DBExceptions from the constructor of ScopedDbConnection - this very rarely results in a crashing test if a host cannot be contacted.

Solution is to add a catch(const DBException& ex) block to places where we currenly protect against LockExceptions.



 Comments   
Comment by Githook User [ 08/May/14 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-13614 distlock_test.cpp doesn't handle connectivity exceptions
Branch: master
https://github.com/mongodb/mongo/commit/de1cfe29c20681b4b57bd027e701c314e0635829

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