cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sumanth-pasupuleti <...@git.apache.org>
Subject [GitHub] cassandra pull request #294: Fixing logging of netty client related ioexcept...
Date Thu, 29 Nov 2018 16:33:18 GMT
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


Mime
View raw message