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

Improve DnsSrvLookupFailedEvent logging

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.3.1
    • None
    • None
    • None
    • 1
    • SDK22: Lambda + KV Range Scan

    Description

      Suggested release note text:

      When a DNS SRV lookup fails due to a missing SRV record, the SDK used to log a scary warning with a stack trace. The lookup failure is typically harmless, so the log message was downgraded to INFO level without a stack trace.

      The SDK logs a scary warning when a DNS SRV lookup fails, even though it's typically harmless.

      DnsSrv.loadDnsRecords was throwing NullPointerException when no record is found, which caused the event to be logged at WARN level, including a stack trace.

      The lookup failure is usually harmless, since the SDK falls back to doing a normal DNS lookup.

      It looks like the expected behavior is for it to throw a NameNotFoundException, which causes the event to get logged at INFO level with NO stack trace.

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty