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

allow better diagnostic of DNS problem by timing CouchbaseNode hostname

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.2.0, 1.1.5
    • 1.1.4
    • None
    • None

    Description

      Since it has been suspected that reverse DNS lookup can be the culprit in some connection delays, upon calling CouchbaseNode.connect for the first time, this case could be sanity-checked and logged to aid diagnostics:

      the InetAddress.getHostName() will attempt to resolve and cache the hostname if it wasn't filled at construction, using a reverse DNS lookup.

      the connect method starts by a log line, which calls getHostName()

      prior to that step, the method should be called explicitely enclosed within a timing measurement, and a WARN log be issued stating that DNS resolution took N milliseconds (if above a reasonable threshold).

      Attachments

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

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            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