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

Multiple documents with the same _id value make reIndex invariant

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.3.2, 5.0.8, 6.0.0-rc0, 4.4.15
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.3, v5.0, v4.4, v4.2
    • Execution Team 2022-04-04, Execution Team 2022-04-18

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              yuhong.zhang@mongodb.com Yuhong Zhang
              daniel.gomezferro@mongodb.com Daniel Gomez Ferro
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: