maedhroz commented on code in PR #3018:
URL: https://github.com/apache/cassandra/pull/3018#discussion_r1453695689
##########
src/java/org/apache/cassandra/transport/ExceptionHandlers.java:
##########
@@ -133,6 +136,15 @@ else if (Throwables.anyCauseMatches(cause, t -> t
instanceof Errors.NativeIoExce
ClientMetrics.instance.markUnknownException();
logger.trace("Native exception in client networking", cause);
}
+ else if (Throwables.anyCauseMatches(cause, t -> t instanceof
SSLHandshakeException))
+ {
+ ClientMetrics.instance.markSSLHandshakeException();
+ NoSpamLogger.log(logger, NoSpamLogger.Level.WARN, 1,
TimeUnit.MINUTES, "SSLHandshakeException in client networking with peer {} {}",
clientAddress, cause.getMessage());
+ }
+ else if (Throwables.anyCauseMatches(cause, t -> t instanceof
SSLException))
+ {
+ NoSpamLogger.log(logger, NoSpamLogger.Level.WARN, 1,
TimeUnit.MINUTES, "SSLException in client networking with peer {} {}",
clientAddress, cause.getMessage());
+ }
Review Comment:
You are 100% correct. I only looked at `NoSpamLogger` acquisition and
ignored `NoSpamLogStatement` acquisition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]