You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Hu Liu, (JIRA)" <ji...@apache.org> on 2014/10/27 10:10:34 UTC

[jira] [Created] (HDFS-7293) Couldn't really set timeout value to 0 for streaming reading and writing

Hu Liu, created HDFS-7293:
-----------------------------

             Summary: Couldn't really set timeout value to 0 for streaming reading and writing
                 Key: HDFS-7293
                 URL: https://issues.apache.org/jira/browse/HDFS-7293
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 2.5.1
            Reporter: Hu Liu,


In our scenario, we need to set the timeout value of streaming to 0.
But in current code, we couldn't really set the timeout value to 0.
{code}
          int timeoutValue = dnConf.socketTimeout
              + (HdfsServerConstants.READ_TIMEOUT_EXTENSION * targets.length);
          int writeTimeout = dnConf.socketWriteTimeout + 
                      (HdfsServerConstants.WRITE_TIMEOUT_EXTENSION * targets.length);
{code}

It's better to allow user to really set the value to 0 because in some scenario, user really need to set it to 0.



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