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

mongo_lock's find_mutex_holder should handle mutexes with no apparent holder

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • TIG 2018-1-1, TIG 2017-12-18
    • 0

    Description

      In mongo_lock.py, find_mutex_holder() looks up a mutex holder in a thread_dict map, but doesn't check for the key's existence first.

      If the key doesn't exist, the entire MongoDBDumpLocks run fails with a backtrace and this Python error message:

      KeyError: 17150
      

      Instead, it should simply print an informative message and continue.

      Attachments

        Activity

          People

            eddie.louie Eddie Louie
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: