hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esteban Gutierrez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8311) DataStreamer.transfer() should timeout the socket InputStream.
Date Fri, 08 May 2015 21:29:02 GMT

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

Esteban Gutierrez commented on HDFS-8311:
-----------------------------------------

[~brahmareddy], [~yzhangal] I've created HDFS-8359. Depending what we might find down the
road we can move that jira as an umbrella jura and this jira as a subtask of HDFS-8359. Thanks
again!

> DataStreamer.transfer() should timeout the socket InputStream.
> --------------------------------------------------------------
>
>                 Key: HDFS-8311
>                 URL: https://issues.apache.org/jira/browse/HDFS-8311
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Esteban Gutierrez
>            Assignee: Esteban Gutierrez
>             Fix For: 2.8.0
>
>         Attachments: 0001-HDFS-8311-DataStreamer.transfer-should-timeout-the-s.patch,
HDFS-8311.001.patch
>
>
> While validating some HA failure modes we found that HDFS clients can take a long time
to recover or sometimes don't recover at all since we don't setup the socket timeout in the
InputStream:
> {code}
> private void transfer () { ...
> ...
>  OutputStream unbufOut = NetUtils.getOutputStream(sock, writeTimeout);
>  InputStream unbufIn = NetUtils.getInputStream(sock);
> ...
> }
> {code}
> The InputStream should have its own timeout in the same way as the OutputStream.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message