Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1113

Connections to failed primary replica left in CLOSE_WAIT state

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      To recreate:

      1. Create a 3 node replica set (2 data nodes and 1 arbiter).
      2. Start up an application using the mongodb driver with connections to the replica set.
      3. Kill the primary
      4. Allow the driver to detect that the primary is down
      4. Start the primary again

      Run netstat -a | grep CLOSE_WAIT. You should see that there are a couple connections left in the CLOSE_WAIT state for the server that had failed. In the case where a host is detected down, these connections should be closed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            clecompte Chris LeCompte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: