Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1025

Network disconnection during query processing can cause infinite exceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: RPC, Worker
    • Labels:
      None

      Description

      If network is disconnected during query processing, infinite exception will be caused as follows:

      Actually, network disconnection may occur rarely in this area, but we should consider such a case too.

      2014-09-02 09:46:48,673 ERROR org.apache.tajo.rpc.AsyncRpcClient: RPC Exception:java.net.SocketException: Network is unreachable
      2014-09-02 09:46:48,673 ERROR org.apache.tajo.rpc.AsyncRpcClient: null,class org.apache.tajo.ipc.QueryMasterProtocol,Network is unreachable
      java.net.SocketException: Network is unreachable
      	at sun.nio.ch.Net.connect0(Native Method)
      	at sun.nio.ch.Net.connect(Net.java:465)
      	at sun.nio.ch.Net.connect(Net.java:457)
      	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
      	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:108)
      	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)
      	at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)
      	at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)
      	at org.jboss.netty.channel.Channels.connect(Channels.java:634)
      	at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
      	at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
      	at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
      	at org.apache.tajo.rpc.NettyClientBase.connect(NettyClientBase.java:76)
      	at org.apache.tajo.rpc.NettyClientBase.init(NettyClientBase.java:63)
      	at org.apache.tajo.rpc.AsyncRpcClient.<init>(AsyncRpcClient.java:77)
      	at org.apache.tajo.rpc.RpcConnectionPool.makeConnection(RpcConnectionPool.java:64)
      	at org.apache.tajo.rpc.RpcConnectionPool.getConnection(RpcConnectionPool.java:78)
      	at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:378)
      	at java.lang.Thread.run(Thread.java:744)
      2014-09-02 09:46:48,673 ERROR org.apache.tajo.rpc.AsyncRpcClient: RPC Exception:java.net.SocketException: Network is unreachable
      2014-09-02 09:46:48,673 ERROR org.apache.tajo.rpc.AsyncRpcClient: null,class org.apache.tajo.ipc.QueryMasterProtocol,Network is unreachable
      java.net.SocketException: Network is unreachable
      	at sun.nio.ch.Net.connect0(Native Method)
      	at sun.nio.ch.Net.connect(Net.java:465)
      	at sun.nio.ch.Net.connect(Net.java:457)
      	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
      	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.connect(NioClientSocketPipelineSink.java:108)
      	at org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:70)
      	at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)
      	at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:54)
      	at org.jboss.netty.channel.Channels.connect(Channels.java:634)
      	at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:207)
      	at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229)
      	at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182)
      	at org.apache.tajo.rpc.NettyClientBase.connect(NettyClientBase.java:76)
      	at org.apache.tajo.rpc.NettyClientBase.init(NettyClientBase.java:63)
      	at org.apache.tajo.rpc.AsyncRpcClient.<init>(AsyncRpcClient.java:77)
      	at org.apache.tajo.rpc.RpcConnectionPool.makeConnection(RpcConnectionPool.java:64)
      	at org.apache.tajo.rpc.RpcConnectionPool.getConnection(RpcConnectionPool.java:78)
      	at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:378)
      	at java.lang.Thread.run(Thread.java:744)
      
      ....
      

        Attachments

        1. TAJO-1025.20140922-2.patch
          5 kB
          Jinho Kim
        2. TAJO-1025.20140922.patch
          3 kB
          Jihun Kang
        3. TAJO-1025.20140920.patch
          2 kB
          Jihun Kang
        4. NettyClientBase.tolerance.20140918.patch
          3 kB
          Jihun Kang

          Issue Links

            Activity

              People

              • Assignee:
                ykrips Jihun Kang
                Reporter:
                hyunsik Hyunsik Choi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: