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

Wrap multikey metadata maintenance into a side transaction for wildcard indexes

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.0, 4.4.0, 5.0.0, 6.0.0, 7.0.0, 8.0.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • v8.0, v7.3, v7.0, v6.0, v5.0
    • CAR Team 2024-05-13
    • 2

      SERVER-41766 introduced a side transaction to commit multikey metadata changes immediately and independently of the parent multi-document transaction to avoid a corner case resulting in an infinite prepare conflict.

      However, wildcard indexes maintain the multikey metadata paths inside the index table itself, which is different from other indexes which maintain them inside the catalog table, and the code neglects to wrap wildcard multikey paths maintenance inside the side transaction, making wildcard multikey setting vulnerable to infinite prepare conflicts.

            Assignee:
            josef.ahmad@mongodb.com Josef Ahmad
            Reporter:
            josef.ahmad@mongodb.com Josef Ahmad
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: