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)

Reply via email to