Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1772

Cluster finalizer may cause connections to be established

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      It seems that the cluster's finalizer, specifically the part that ends sessions, may be invoked after the server's connection pools have been closed. In this case the cluster's finalizer will create new connections, which 1) is wasteful since it could've used already existing connections and 2) the new connections may not be properly torn down as the pool's finalizer may have already executed.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: