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

Two Primaries if Replica Set Heartbeats Fail in One Direction: "Old" Primary doesn't relinquish.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.5
    • Component/s: Replication
    • None
    • Environment:
      Three Node Replica Set (2 data bearing, 1 arbiter)
    • ALL
    • Hide

      1. Setup three node replica set (2 data bearing, 1 arbiter) and run mongod with '--maxConns 5'.
      2. Ensure that the primary (A) has an replica set member configuration _id less than the secondary (B).
      3. Use mongo shell to connect repeatedly to A such that replica set heartbeats from the arbiter or B fail to connect to A.

      Show
      1. Setup three node replica set (2 data bearing, 1 arbiter) and run mongod with ' --maxConns 5 '. 2. Ensure that the primary (A) has an replica set member configuration _id less than the secondary (B). 3. Use mongo shell to connect repeatedly to A such that replica set heartbeats from the arbiter or B fail to connect to A.

      Because of this line, it's possible for two primaries to exist simultaneously if the "old" primary has an _id less than the "new" primary. "old" primary will stay in PRIMARY state until restarted.

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephen.lee Stephen Lee
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: