Details
-
Improvement
-
Resolution: Fixed
-
Major
-
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
For Gerrit Dashboard: JVMCBC-1093 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
175627,2 | JVMCBC-1093 Improve DnsSrvLookupFailedEvent logging | master | couchbase-jvm-clients | Status: MERGED | +2 | +1 |