[ https://issues.apache.org/jira/browse/HADOOP-8350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267867#comment-13267867 ]
Hudson commented on HADOOP-8350: -------------------------------- Integrated in Hadoop-Common-trunk-Commit #2183 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2183/]) Amend previous commit of HADOOP-8350 (missed new SocketInputWrapper file) (Revision 1333650) HADOOP-8350. Improve NetUtils.getInputStream to return a stream which has a tunable timeout. Contributed by Todd Lipcon. (Revision 1333649) Result = SUCCESS todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1333650 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/SocketInputWrapper.java todd : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1333649 Files : * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/SocketIOWithTimeout.java * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/SocketInputStream.java * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestSocketIOWithTimeout.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/RemoteBlockReader2.java > Improve NetUtils.getInputStream to return a stream which has a tunable timeout > ------------------------------------------------------------------------------ > > Key: HADOOP-8350 > URL: https://issues.apache.org/jira/browse/HADOOP-8350 > Project: Hadoop Common > Issue Type: Improvement > Components: util > Affects Versions: 1.0.0, 2.0.0 > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Fix For: 2.0.0 > > Attachments: hadoop-8350.txt, hadoop-8350.txt, hadoop-8350.txt > > > Currently, NetUtils.getInputStream will set the timeout on the new stream > based on the socket's configured timeout at the time of construction. After > that, the timeout cannot be changed. This causes a problem for cases like > HDFS-3357. One approach used in some places in the code is to construct new > streams when the timeout has to be changed, but this can cause bugs given > that the streams are often wrapped by BufferedInputStreams. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira