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

distlock_test.cpp doesn't handle connectivity exceptions

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.7.1
    • None
    • Testing Infrastructure
    • None
    • ALL
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: