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

        

Reply via email to