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

Consolidate index build RSTL unlock/relock logic

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage Execution
    • Execution Team 2023-05-29

    Description

      As of SERVER-71191, there are two places index builds where we follow the same logic of acquiring the RSTL, releasing it, taking a strong collection lock, and then retrying to acquire RSTL with a timeout. In particular, we do this during index build setup and again for index build commit. This sequence is necessary to avoid deadlocks with prepared transaction and replication state transitions. We should try to consolidate this logic.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: