Github user sumanth-pasupuleti commented on a diff in the pull request:
https://github.com/apache/cassandra/pull/294#discussion_r237562392
--- Diff: src/java/org/apache/cassandra/transport/Message.java ---
@@ -710,7 +710,7 @@ public boolean apply(Throwable exception)
boolean isIOException = exception instanceof IOException || (exception.getCause()
instanceof IOException);
if (!alwaysLogAtError && isIOException)
{
- if (ioExceptionsAtDebugLevel.contains(exception.getMessage()))
+ if (ioExceptionsAtDebugLevel.stream().anyMatch(ioExceptionAtDebugLevel
-> exception.getMessage().contains(ioExceptionAtDebugLevel)))
--- End diff --
Thank you, I was under the delusion, streaming API is better than for loop. Fixed.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
|