Adapt DDL locks to support transactions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • CAR Team 2024-02-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The database and collection DDL locks are currently not usable in transactions because they're handled by the locker as simple mutexes.

      Those should be the needed changes to support their use in transactions:

      • Allow them to be held by the WUOW by delaying unlocking (move those down)
      • Relax this assertion because transactions hold the global lock in IX mode
      • Acquire the db/collection locks in mode IX rather than IS when checking for the shard primary (here and here) because transactions would later try to promote them to IX (invalid transition)

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: