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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution EMEA Team 2023-07-10, Execution EMEA Team 2023-07-24, Execution EMEA Team 2023-08-07, Execution EMEA Team 2023-08-21
    • 105

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: