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

No election in four member replica set with 2 nodes down one by one

    • Type: Icon: Question Question
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Environment:
      Windows 10 (Local computer)

      I run 3 instances with arbiter:

      REPEAT N IN (0-2)
      mongod.exe --dbpath "C:\Databases\Replica\Repl

      {N}" --logpath "C:\Databases\Replica\Repl{N}

      \Logs\Log.txt" --port 4000

      {N}

      --replSet RPL

      Arbiter:
      mongod.exe --dbpath "C:\Databases\Replica\ReplArb" --smallfiles --nojournal --noprealloc --logpath "C:\Databases\Replica\ReplArb\Logs\Log.txt" --port 40003 --replSet RPL

      initiate, add, addArb.

      40000 - master,
      40001 - secondary,
      40002 - secondary
      40003 - arbiter

      1) Kill - 40000
      2) 40001 became primary
      3) Kill 40001
      ooops...

      40002 - secondary
      40003 - arbiter

      And 40002 still waiting to be PRIMARY.
      What wrong ?

      P.S When i run 2-member replica set with arbiter - it's work ok and election were held, but this configuration is fail.

        1. 1.png
          1.png
          15 kB
        2. 2.png
          2.png
          27 kB
        3. 3.png
          3.png
          13 kB
        4. 4.png
          4.png
          6 kB

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            zoxexivo@gmail.com Ivan Artemov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: