Check if we need to initial sync before rebuilding unfinished indexes

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: