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

High monitor connection churn during quiesce period

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.2
    • Affects Version/s: None
    • Component/s: SDAM
    • Labels:
      None
    • Not Needed

      Summary

      When a server enters quiesce mode, the Java driver will repeatedly open and close monitoring connections to that server in a tight loop, leading to high connection churn.

      This affects Java driver 4.7.0, but could date as far back as 4.1.
      Affects MongoDB 5.0+ replica sets and sharded clusters.

      How to Reproduce

      • Start a 5.0 replica set
      • Connect the driver to a secondary with directConnection=true, enable logging
      • Execute a ping command
      • Sleep the thread
      • Kill the secondary the driver is connected to (SIGTERM)
      • Observe repeated connection creation for the duration of the quiesce period

      Additional Background

      See this comment for additional information.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: