Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9440

Unit Test: hadoop-common2.0.3 TestIPC fails on protobuf2.5.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.1.0-beta
    • None
    • test

    Description

      TestIPC runs normally if use protobuf2.4.1 or below version. But if using protobuf2.5.0, TestIPC.testIpcTimeout & TestIPC.testIpcConnectTimeout will fail.

      java.io.IOException: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: 500 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/127.0.0.1:50850 remote=louis-ThinkPad-T410/127.0.0.1:50353]; Host Details : local host is: "louis-ThinkPad-T410/127.0.0.1"; destination host is: "louis-ThinkPad-T410":50353;
      at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:761)
      at org.apache.hadoop.ipc.Client.call(Client.java:1239)
      at org.apache.hadoop.ipc.Client.call(Client.java:1163)
      at org.apache.hadoop.ipc.TestIPC.testIpcTimeout(TestIPC.java:492)

      testIpcConnectTimeout(org.apache.hadoop.ipc.TestIPC) Time elapsed: 2009 sec <<< ERROR!
      java.io.IOException: Failed on local exception: com.google.protobuf.InvalidProtocolBufferException: 2000 millis timeout while waiting for channel to be ready for read. ch : java.nio.channels.SocketChannel[connected local=/127.0.0.1:51304 remote=louis-ThinkPad-T410/127.0.0.1:39525]; Host Details : local host is: "louis-ThinkPad-T410/127.0.0.1"; destination host is: "louis-ThinkPad-T410":39525;
      at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:761)
      at org.apache.hadoop.ipc.Client.call(Client.java:1239)
      at org.apache.hadoop.ipc.Client.call(Client.java:1163)
      at org.apache.hadoop.ipc.TestIPC.testIpcConnectTimeout(TestIPC.java:515)

      TestIPC.testIpcTimeout & TestIPC.testIpcConnectTimeout fails because it catches the com.google.protobuf.InvalidProtocolBufferException not SocketTimeoutException.

      Attachments

        1. HADOOP-9440.patch
          1 kB
          Tian Hong Wang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tianhonglouis Tian Hong Wang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: