Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3645

Cluster nodes are not removed on topology description change

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • network
    • None

    Description

      For a client pool, a mongoc_cluster_t keeps a set of nodes. Each node is associated with a server, and contains an application-use connection. Nodes are created on demand as operations need them.

      Cluster nodes are removed during some errors (e.g. a network error calling mongoc_cluster_disconnect_node). But a cluster node for a server will not be removed when the server is removed from the topology description.

      That server will no longer be eligible for server selection. So I believe the cluster node will remain around until the client is destroyed.

      This could be problematic for long running applications. If a server is periodically added and removed to the topology (perhaps due to poor connectivity or maintenance), many unusable cluster nodes could hang around.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: