Multiple documents with the same _id value make reIndex invariant

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.2, 5.0.8, 6.0.0-rc0, 4.4.15
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.3, v5.0, v4.4, v4.2
    • Execution Team 2022-04-04, Execution Team 2022-04-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In a cluster affected by WT-7995 and WT-8395, there two documents sharing the same _id value.

      Our remediation process guide requires running reIndex to fix inconsistencies detected by validate. In master, when reIndex encounters duplicate _ids it invariants. The server ends up in a bad state because it tries to build the _id index during recovery but fails every time due to the duplicate values.

      In 4.4 the behaviour is a bit different, reIndex adds the duplicate entries to the index and validate invariants when it encounters two duplicate values in a unique index.

            Assignee:
            Yuhong Zhang
            Reporter:
            Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: