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

Check if we need to initial sync before rebuilding unfinished indexes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:

      Description

      We first restart in-progress indexes: https://github.com/mongodb/mongo/blob/a08d6998928720aeea25546dca785f242b6b102d/src/mongo/db/db.cpp#L926 , and then we start replication: https://github.com/mongodb/mongo/blob/a08d6998928720aeea25546dca785f242b6b102d/src/mongo/db/db.cpp#L958
      , which is where we check for initial sync. Creating indexes can take a very long time and we should skip this if we're going to go into initial sync immediately.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tess.avitabile Tess Avitabile
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: