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

InsertOne method stop working after one node of ReplicaSet goes down...!

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.4
    • Component/s: Operations
    • Environment:
      Windows 10

      Hello,
      First of all, I want to say sorry for my bad English.
      I just set up a replica set containing three nodes and I wrote a code to test the downtime when one node gets down.
      The console app starts running and suddenly I turned off the VPS that contains the primary node, after a while, another primary elected and compass connects again and starts working but my code stops working...! When I pause the visual studio it lights on the insert line. Actually, I think it hangs on insert line.
      Should I do something to my code that it won't stop working after the primary goes down...!?
      Here I attached my code.

        1. Capture.PNG
          Capture.PNG
          96 kB
        2. Capture.PNG
          Capture.PNG
          123 kB

            Assignee:
            wan.bachtiar@mongodb.com Wan Bachtiar
            Reporter:
            mrdaghestani MohammadReza Daghestani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: