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

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      TIG 2018-1-1, TIG 2017-12-18
    • Linked BF Score:
      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

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: