run_initial_sync_node_validation.js should be robust to step-downs

XMLWordPrintableJSON

    • Replication
    • Fully Compatible
    • ALL
    • Repl 2024-09-16
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: