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 "Lin Yiqun (JIRA)" <ji...@apache.org> on 2016/03/02 04:12:18 UTC

[jira] [Created] (HDFS-9883) Replace the hard-code value to variable

Lin Yiqun created HDFS-9883:
-------------------------------

             Summary: Replace the hard-code value to variable
                 Key: HDFS-9883
                 URL: https://issues.apache.org/jira/browse/HDFS-9883
             Project: Hadoop HDFS
          Issue Type: Improvement
    Affects Versions: 2.7.1
            Reporter: Lin Yiqun
            Assignee: Lin Yiqun
            Priority: Minor


In some class of HDFS, there are many hard-code value places. Like this: 
{code}
  /** Constructor 
   * @param bandwidthPerSec bandwidth allowed in bytes per second. 
   */
  public DataTransferThrottler(long bandwidthPerSec) {
    this(500, bandwidthPerSec);  // by default throttling period is 500ms
  }
{code}
It will be better replace these value to variables so that it will not be easily ignored.



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