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

Deadlock with index build, step down, prepared transaction, and MODE_IS coll lock

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.6, 6.0.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0, v6.0, v5.0
    • Execution EMEA Team 2023-07-10, Execution EMEA Team 2023-07-24, Execution EMEA Team 2023-08-07, Execution EMEA Team 2023-08-21
    • 114

      PreparedTransaction IndexBuild (uninterruptible by stepdown) OtherCommand StepDownThread
      Hold coll MODE_IX lock      
      •  
      Enqueue coll MODE_X lock (does not hold RSTL)    
      •  
      •  
      AutoGetCollection(MODE_IS)  
      •  
      •  
      • Holds RSTL MODE_IX while waiting for collection lock
       
      •  
      •  
      •  
      Enqueue RSTL MODE_X

      Stepdown does not kill operations that do no take locks conflicting with writes.

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: