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

Unique index that gets rebuilt as part of startup recovery/repair is using data format version as 6 or 8 and NOT 11 or 12.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.4, 4.3.4
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Execution Team 2020-01-27
    • Linked BF Score:
      44

      Description

      Unique index rebuilt as part of mongodb 4.2 startup repair/recovery will  have either kDataFormatV2KeyStringV1IndexVersionV2 (8) or kDataFormatV1KeyStringV0IndexVersionV1 (6) since FCV is uninitialized at that point of time.  To be noted, we initialize FCV only after rebuilding the index which is over here. As a result, we break the assumption mentioned here. Also, if we upgrade/restart the node with mongodb binary version 4.3+, we would crash the server as part of startup index sanity check (Sanity check got introduced only from mongodb 4.3+).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              louis.williams Louis Williams
              Reporter:
              suganthi.mani Suganthi Mani
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: