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

mongo_lock.py graph should reflect thread queue order

    • Server Tooling & Methods

      Consider the following lock wait scenario:

      1. Thread T1 has acquired a database lock with MODE_IX
      2. Thread T2 requests the same lock with MODE_X
      3. Thread T3 requests the same lock with MODE_IX

      The mongo_lock.py graph will have a line from both T2 and T3 to the database lock, indicating that both are waiting on the same lock. What is missing from this picture is that T1 is really waiting behind T2 in the lock acquisition queue and could otherwise acquire the lock if the T2 acquisition were interrupted.

      What may be a clearer representation would be a chart that showed T2 waiting on lock acquisition and T1 waiting on T2.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: