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

Initial sync could fail under replsetprio1.js settings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 3.4.21, 3.6.13, 4.0.10
    • Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6, v3.4
    • Repl 2019-04-22
    • 22

    Description

      Initial sync doesn't survive sync source's state transitions in 4.0 or older. Under this test's settings, I think it is always possible for a node to step down while another node is still syncing from it. This is because when at least two nodes are available, primary could step down if the other node has higher priority. And if the third node is still in initial sync, then the initial sync will fail. A potential fix would be to set a higher numInitialSyncAttempts (currently set to 1) for this test. And I think this could happen with PV1 too.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: