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

Improve lock identification information logged on lock timeout errors

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Storage Execution

      LockerImpl::lock() is called by code that appears to typically have a dbName or nss or UUID. However, down in LockerImpl::_lockComplete() where we log "Unable to acquire ... lock on <resId> within <time>", we only provide a hard/impossible to identify resId number. It would be helpful to connect the name for the lock down through to this log message, so we can know what lock failed to be acquired.

      I'm less familiar with ResourceMutex identification, but it would be great to improve identification logging for those as well – an ambiguous resId number for a ResourceMutex acquisition attempt is what motivated this ticket.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: