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

Use donor specs for _id index in tenant migration collection cloner

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • v5.0
    • Repl 2021-06-14
    • 36

      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.

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

              Created:
              Updated:
              Resolved: