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

Multiple documents with the same _id value make reIndex invariant

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

      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@mongodb.com Yuhong Zhang
            Reporter:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: