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

Use donor specs for _id index in tenant migration collection cloner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc2, 5.1.0-rc0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v5.0
    • Sprint:
      Repl 2021-06-14
    • Linked BF Score:
      36

      Description

      In the tenant migration cloner, we separate the _id index from other index builds. We rely on the createCollection code path to build the _id index with default specs, whereas for other indexes, we will use the specs from the donor.

      Because of this, if the user specifies v: 1 for their index builds, it seems possible for there to be a mismatch between the versions. Since there is a semantic difference between v:1 and v:2 indexes, we should use the user's specs when building the _id index.

        Attachments

          Activity

            People

            Assignee:
            vishnu.kaushik Vishnu Kaushik
            Reporter:
            xuerui.fa Xuerui Fa
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: