Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-2059

Warn if a connected cluster is garbage collected, and disconnect it.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.4.8
    • None
    • None
    • None
    • 10
    • SDK22, SDK24

    Description

      Suggested release note:

      If a `Cluster` becomes eligible for garbage collection, and you haven't called `cluster.disconnect()` yet, the SDK now logs a warning and disconnects the cluster for you. This prevent the abandoned cluster's network connections from living forever. Please do not rely on this "auto-disconnect" feature. It's always better to call `cluster.disconnect()` as soon as you're done talking to the cluster, so the network connections and other resources get released right away.

       

      If a user neglects to disconnect a Cluster prior to it being garbage collected, we'd like to log a warning and automatically disconnect it for them. Otherwise, the zombie core continues to consume resources.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty