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

Check if we need to initial sync before rebuilding unfinished indexes

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
    • Repl 2018-09-10

      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.

            Assignee:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: