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

mongodb-dump-locks GDB command may block if mongod process already in midst of logging to console

    • Server Tooling & Methods
    • ALL

      The mongodb-dump-locks command calls LockManager::dump() on the globalLockManager instance, which attempts to write the LockManager's lock state information to the mongod's stdout pipe via calls to log(). If another thread is already in the midst of logging to the console, then calling the LockManager::dump() function will block upon constructing another Console instance.

      We should either (a) depend only on mongodb-show-locks and stop calling the mongodb-dump-locks command in hang_analyzer.py, or (b) add a version of LockManager::dump() that returns a string and doesn't attempt to call the log() function so that GDB can print the lock state messages itself.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: