Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-452

Misleading reconnection log message in AbstractEndpoint.notifyChannelInactive

    XMLWordPrintable

Details

    • Task
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • None

    Description

      AbstractEndpoint.notifyChannelInactive logs a message saying it's attempting a reconnection, even if it isn't (due to an orderly disconnect).

      To reproduce the issue:

      CouchbaseCluster cluster = CouchbaseCluster.create(host);
      Bucket bucket = cluster.openBucket("travel-sample");
      cluster.disconnect();

      Observe the log output contains a line like:

      2017-08-18 11:07:03 INFO  Endpoint:547 - [null][KeyValueEndpoint]: Got notified from Channel as inactive, attempting reconnect.

      even though the reconnection attempt is skipped because the channel is in a disconnected/ing lifecycle state.

      The code should probably only emit that message if it's actually going to connect, and log a different message for an orderly disconnect.

      Attachments

        Issue Links

          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:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty