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

Lock ordering violation between POS mutex lock and instance mutex lock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch
    • ALL
    • Service Arch 2023-06-12, Service Arch 2023-06-26

    Description

      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.

       

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: