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

Lock the database in Intent Exclusive mode (IX) instead of Exclusive mode (X) when setting or clearing database metadata in the authoritative model

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-03-17
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When the secondary node applies the onDatabaseMetadataUpdate oplog 'c' entry, it can either call clearDbInfo or setDbInfo, depending on the DDL operation it is reacting to. In order to execute both methods, we need to have acquired the DSS in exclusive mode.

      This ticket aims to investigate whether it is also necessary to acquire the MODE_X lock on the database or a less restrictive mode.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None