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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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
    • 3
    • 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
              Reporter:
              Pol Pinol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: