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

createIndex should add an entry in oplog even if the index exists

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Indexing, Replication
    • Labels:
      None
    • Sprint:
      Repl 2017-01-23, Repl 2017-02-13
    • Case:

      Description

      When an index is built in a rolling fashion (by taking nodes out of a replica set one by one and building the index on them) as described in Build Indexes on Replica Sets, an oplog entry never gets created and the index doesn't get created on the backup. There is currently no safe workaround to create such indexes on backup and the only available solution is a resync of backup which could be very long.

      Could we have a way to create an entry in oplog for indexes that already exist and have secondaries (including backup) only create that index if it's not already there?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: