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

run_initial_sync_node_validation.js should be robust to step-downs

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 2024-09-16
    • 0

      BF-34716 identified that if the primary has stepped down at the time this hook starts then the hook fails due to this check:
      https://github.com/mongodb/mongo/blob/7ae3c05a1baf8d0de62d555eb94f604fcea2bb0e/jstests/hooks/run_initial_sync_node_validation.js#L8

      We should see if we can make this hook not rely on having a primary, or if not make it more robust to step-downs. Alternatively, we could consider increasing the election timeout used in that particular test/suite, which appears to only be 2 seconds (but that low value may be intentional).

            Assignee:
            brad.cater@mongodb.com Brad Cater
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: