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

Do not defer creation of _id index for replicated collections

    • Fully Compatible
    • ALL
    • Query 2016-10-31, Query 2016-11-21
    • 0

      When a primary defers creation of the _id index, the secondary still creates the _id index when applying the oplog entry for the collection creation. This results in inconsistent indexes between primary and secondary. We should remove occurrences of deferred _id index creation:
      chunk migration
      cloner (all occurrences in that file)
      renameCollection
      repairDatabase (mmapv1)

      We need not change initial sync or the oplog buffer collection, since those collection creations are not replicated.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: