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

MongoServer.Primary.IsPrimary = false

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.2
    • 1.2
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: