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

mongo_lock.py graph displays lock request type for LockManager locks

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      STM 2018-10-22
    • Story Points:
      1

      Description

      Changes for SERVER-34738 now display the lock requester's mode. We need to display the lock holder's mode as well.

      We should change the following

                  print("MongoDB Lock at {} ({}) held by {} waited on by {}".format(
                      lock_head, lock_request["mode"], lock_holder, lock_waiter))
      

      to

                 # Code to set the lock_mode needs to be added
                  print("MongoDB Lock at {} ({}) held by {} waited on by {} ({})".format(
                      lock_head, lock_mode, lock_holder, lock_waiter, lock_request["mode"]))
      

      Other references to lock_request["mode"] should be modified as well, such that the mode is properly associated to holder.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              max.hirschhorn Max Hirschhorn
              Reporter:
              jonathan.abrahams Jonathan Abrahams
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: