hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ramkrishna.s.vasudevan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-1949) Number format Exception is displayed in Namenode UI when the chunk size field is blank or string value..
Date Mon, 30 May 2011 10:14:53 GMT

    [ https://issues.apache.org/jira/browse/HDFS-1949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041072#comment-13041072
] 

ramkrishna.s.vasudevan commented on HDFS-1949:
----------------------------------------------

Hi Todd

Thanks for your comments.

As per your suggestion can we handle the trailing and leading white space by calling .trim()
on the server side ?
If the user gives any value with spaces in the middle like 1 23 then we can throw a  pop up
in javascript.
Is this fine Todd?

> Number format Exception is displayed in Namenode UI when the chunk size field is blank
or string value.. 
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-1949
>                 URL: https://issues.apache.org/jira/browse/HDFS-1949
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.20-append, 0.21.0, 0.23.0
>            Reporter: ramkrishna.s.vasudevan
>            Priority: Minor
>             Fix For: 0.23.0
>
>         Attachments: HDFS-1949.patch, hdfs-1949-1.patch, hdfs-1949.patch
>
>
> In the Namenode UI we have a text box to enter the chunk size.
> The expected value for the chunk size is a valid Integer value.
> If any invalid value, string or empty spaces are provided it throws number format exception.
> The existing behaviour is like we need to consider the default value if no value is specified.
> Soln
> ====
> We can handle numberformat exception and assign default value if invalid value is specified.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message