Fail initial sync attempt if sync source is in initial sync

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • Repl 2020-03-23, Repl 2020-04-06
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If the sync source is in the replica set config, but not in state PRIMARY or SECONDARY, we issue a retryable error, causing us to retry connecting until the node is in state PRIMARY or SECONDARY. This is a liveness issue if the sync source is in initial sync, since it could take a long time for the sync source to finish initial sync. It's also a correctness issue, since the sync source can be on a different branch of history when it completes its initial sync. We should fail the initial sync attempt if the sync source is in initial sync.

            Assignee:
            Matthew Russotto
            Reporter:
            Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: