1 Reply Latest reply on Nov 24, 2010 3:52 AM by Galder Zamarreño

    Broken pipe/Connection reset by peer in HotRod

    Michal Szymanski Newbie

      Hi

      From few weeks we are testing HotRod 4.1. HotRod is installed on Linux and all test clients are on Windows. From time to time

      we are folowing exeception on server (and client cannot connect to server ). We have feeling it is realated to some kind of timeout because

      it happens when there is no activity for a long time between client and HotRod server

       

      java.io.IOException: Connection reset by peer
              at sun.nio.ch.FileDispatcher.read0(Native Method)
              at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
              at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
              at sun.nio.ch.IOUtil.read(IOUtil.java:200)
              at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:236)
              at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:322)
              at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:281)
              at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:201)
              at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      2010-11-15 13:33:11,417 TRACE [org.infinispan.server.hotrod.HotRodEncoder$] (HotRodServerWorker-1-7) Encode msg ErrorResponse{messageId=0, operation=ErrorResponse, status=ServerError, msg=java.io.IOException: Connection reset by peer}
      2010-11-15 13:33:11,418 ERROR [org.infinispan.server.core.AbstractProtocolDecoder$] (HotRodServerWorker-1-7) Exception reported
      java.io.IOException: Broken pipe
              at sun.nio.ch.FileDispatcher.write0(Native Method)
              at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
              at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
              at sun.nio.ch.IOUtil.write(IOUtil.java:60)
              at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
              at org.jboss.netty.channel.socket.nio.SocketSendBufferPool$PooledSendBuffer.transferTo(SocketSendBufferPool.java:239)
              at org.jboss.netty.channel.socket.nio.NioWorker.write0(NioWorker.java:470)
              at org.jboss.netty.channel.socket.nio.NioWorker.writeFromUserCode(NioWorker.java:388)
              at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleAcceptedSocket(NioServerSocketPipelineSink.java:137)
              at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:76)
              at org.jboss.netty.channel.Channels.write(Channels.java:632)
              at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:70)
              at org.jboss.netty.channel.Channels.write(Channels.java:611)
              at org.jboss.netty.channel.Channels.write(Channels.java:578)
              at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:259)
              at org.infinispan.server.core.transport.netty.ChannelAdapter.write(ChannelAdapter.scala:21)
              at org.infinispan.server.core.AbstractProtocolDecoder.exceptionCaught(AbstractProtocolDecoder.scala:149)
              at org.infinispan.server.core.transport.netty.DecoderAdapter.exceptionCaught(DecoderAdapter.scala:22)
              at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:432)
              at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:332)
              at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:281)
              at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:201)
              at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      2010-11-15 13:33:11,419 TRACE [org.infinispan.server.hotrod.HotRodEncoder$] (HotRodServerWorker-1-7) Encode msg ErrorResponse{messageId=0, operation=ErrorResponse, status=ServerError, msg=java.io.IOException: Broken pipe}
      2010-11-15 13:33:11,420 ERROR [org.infinispan.server.core.AbstractProtocolDecoder$] (HotRodServerWorker-1-7) Exception reported
      java.nio.channels.ClosedChannelException