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 "Rajit Saha (Created) (JIRA)" <ji...@apache.org> on 2011/09/30 20:25:45 UTC

[jira] [Created] (HDFS-2390) dfsadmin -setBalancerBandwidth doesnot validate -ve value

dfsadmin -setBalancerBandwidth doesnot validate -ve value
---------------------------------------------------------

                 Key: HDFS-2390
                 URL: https://issues.apache.org/jira/browse/HDFS-2390
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: balancer
    Affects Versions: 0.20.205.0
            Reporter: Rajit Saha


$ hadoop dfsadmin -setBalancerBandwidth -10000 

does not throw any message that it is invalid although in DN log we are not getting
"DNA_BALANCERBANDWIDTHUPDATE". 

I think it should throw some message that -ve numbers are not valid , as it does
for decimal numbers or non-numbers like -

$ hadoop dfsadmin -setBalancerBandwidth 12.34
NumberFormatException: For input string: "12.34"
Usage: java DFSAdmin [-setBalancerBandwidth <bandwidth in bytes per second>]

--
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