Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-641

The client does not recover its connectivity with database ramdonly when bring the network interfaces of the replicaset machines up.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 2.1.4
    • Component/s: None
    • Labels:
    • Environment:
      ReplicaSet composed by three machines(Red-Hat 6.6, Mongo 2.6.9) and a node script that uses express@3.4.0 and mongodb@2.1.4

      I tested this issue using app2.js script that it is attached here. I do the following steps to reproduce the problem:

      • Start the node script with the network interfaces of the ReplicaSet brougth up.
      • Perform some requests in order to check that the script runs well.
      • Take down all network interfaces of the ReplicaSet (ifdown), and perform again some requests. In this case, we have to capture an error.
      • Wait some minutes.
      • Bring up the network interfaces of the ReplicaSet and wait some seconds. Sometimes the script can perform the query, but other times the client cannot recovery the connection and you need to restart the script if you want to have a good connection again.

        1. app2.js
          1 kB
        2. replicasetFailIfdownIfup.txt
          263 kB
        3. Sockets.txt
          0.6 kB
        4. replicasetFailIfdownIfup2.txt
          120 kB
        5. replicasetFailIfdownIfup3.txt
          83 kB
        6. replicasetFailIfdownIfup4.txt
          328 kB
        7. replicasetFailIfdownIfup5.txt
          212 kB
        8. Topology.png
          Topology.png
          62 kB

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            jherlab Juan Antonio Hernando Labajo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: