Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13614

distlock_test.cpp doesn't handle connectivity exceptions

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.7.1
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • ALL
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Reporter:
            greg_10gen Greg Studer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: