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

Make replsets/auth1.js step up a node while initiating the replica set

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2020-04-06, Repl 2020-04-20, Repl 2020-05-04, Repl 2020-05-18, Repl 2020-06-01
    • 9

      The test runs an initiate command rather than using ReplSetTest's initiate function since the test does not guarantee that all nodes are authenticated. This means that the first primary for the set happens after a node's election timeout triggers and it successfully runs for election. If another node runs for election before it finds out about the first election, then the original primary will step down, which could interrupt ongoing operations being run by the test.

      Instead, we should ensure that all nodes agree on the primary some other way to ensure that nodes don't interrupt each other in the middle of the test.

            Assignee:
            samy.lanka@mongodb.com Samyukta Lanka
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: