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

MongoServer.IsPrimary Would Error When a Failover Occured Until the Old Primary Came Back Online

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

      A Disconnected Primary MongoServerInstance ServerInformation is never resetted and though the MongoServer.Primary is never Single()

      The Issue is in MongoServerInstance.cs a lot of your actions start with a Ping() => Ping(MongoConnection connection) => in case of an Exception it throws and though the State is Never resetted.

        1. 0001-CSHARP-724-Major-Issue-in-the-Failover-scenario-Once.patch
          46 kB
        2. CSharp724Tests.cs
          11 kB
        3. MongoServerInstance.cs
          27 kB

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            christian.klat Christian KLAT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: