Change log level from ERROR to warn. 23/90923/3
authorChetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
Mon, 6 Jul 2020 05:13:14 +0000 (10:43 +0530)
committerChetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
Fri, 10 Jul 2020 09:31:59 +0000 (15:01 +0530)
Description:
When a connection is termination by Peer, following log is logged at
error level causing to get captured in teardown making TC as failure.

Exception occurred while processing connection pipeline
io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer

Change the log level from ERROR to warn as this exception is expected
during connection teardown and not making TC to mark as fail for this.

JIRA : OVSDB-496

Signed-off-by: Chetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
Change-Id: I82a585d4478f07e29f8b04600b7df95bb98c6d08
Signed-off-by: Chetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
library/impl/src/main/java/org/opendaylight/ovsdb/lib/jsonrpc/ExceptionHandler.java

index 69709c3c220e5ded45e54f99fb468f8aea49717e..d85b23443385dde4eb352c9d89807ea7c1447fd5 100644 (file)
@@ -35,7 +35,7 @@ public class ExceptionHandler extends ChannelDuplexHandler {
     @Override
     public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
         if (ctx.channel().isActive()) {
-            LOG.error("Exception occurred while processing connection pipeline", cause);
+            LOG.warn("Exception occurred while processing connection pipeline", cause);
             if ((cause instanceof InvalidEncodingException)
                     || (cause instanceof TooLongFrameException || (cause instanceof DecoderException))) {
                 LOG.info("Disconnecting channel to ovsdb {}", ctx.channel());