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

Consolidate index build RSTL unlock/relock logic

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • Execution Team 2023-05-29

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            gregory.noma@mongodb.com Gregory Noma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: