MongoServer.Ping() does not detect if servers go offline

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Critical - P2
    • None
    • Affects Version/s: 1.9.2
    • Component/s: API
    • Environment:
      Official NuGet package, .NET 4.5 on Windows 7
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When using a connection string with multiple servers in a replicaset, Ping() does not detect if one of the MongoDB instances go offline, it will not throw an exception.
      Only if I call Reconnect() will the driver detect that one of the instances are offline and throw an exception when calling Ping().

      An easy way to test is to put one of the MongoDb instance hostnames in your hosts file and point it to 127.0.0.1, assuming you don't have mongodb running on your localhost.

            Assignee:
            Unassigned
            Reporter:
            Michael C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: