You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Tsuyoshi OZAWA (JIRA)" <ji...@apache.org> on 2013/07/11 12:49:50 UTC

[jira] [Commented] (HADOOP-9440) Unit Test: hadoop-common2.0.3 TestIPC fails on protobuf2.5.0

    [ https://issues.apache.org/jira/browse/HADOOP-9440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705677#comment-13705677 ] 

Tsuyoshi OZAWA commented on HADOOP-9440:
----------------------------------------

I've tried to compile hadoop-commons' trunk with protobuf 2.5.0 and succeeded to pass TestIPC though I needed to run "mvn clean" command explicitly under hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common directory.  Therefore, the test failure seems to be caused the mixture of old jar file compiled with protobuf 2.4.x and new jar file compiled with protobuf 2.5.0. If this assumption is correct, this ticket should be marked as "Not a problem". Did you "mvn clean" before recompile?
                
> Unit Test: hadoop-common2.0.3 TestIPC fails on protobuf2.5.0
> ------------------------------------------------------------
>
>                 Key: HADOOP-9440
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9440
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.1.0-beta
>            Reporter: Tian Hong Wang
>              Labels: patch
>         Attachments: HADOOP-9440.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira