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

XMLWordPrintableJSON

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

      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
              Reporter:
              MohammadReza Daghestani
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: