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

Lock ordering violation between POS mutex lock and instance mutex lock

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Service Arch
    • ALL
    • Service Arch 2023-06-12, Service Arch 2023-06-26

      On stepdown, the stepdown thread holds the RSTL and POS mutex lock and calls the instance interrupt method which in-turn tries to acquire instance mutex lock. On the other hand, the instance state machinery thread can try to acquire POS mutex holding instance mutex lock. This resulted in deadlocks. (See SERVER-60872 for historical deadlock scenarios). SERVER-60872 will address those deadlock bugs using quick short-term fix. As part of this ticket, we should come up with a long-term solution.

       EDIT: please refer this deadlock case as well

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: