Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-303

MongoServer.Primary.IsPrimary = false

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.2
    • Affects Version/s: 1.2
    • Component/s: None

      After primary steps down and client reconnects, the MongoServer.Primary still points to old primary (that, interestingly, already has IsPrimary set to false). MongoServer.Secondaries properly contains all servers and secondaries.
      I wonder if MongoServer.Primary should just return null when there are no primaries after one goes down? I'm not sure how it can become NOT null afterwards though, but then I don't know that much about the driver innards.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: