hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-2081) Configuration getInt, getLong, and getFloat replace invalid numbers with the default value
Date Sun, 17 Jul 2011 16:48:59 GMT

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

Uma Maheswara Rao G commented on HADOOP-2081:
---------------------------------------------

{code}
+   * If no such property exists, or if the specified value is not a valid
+   * <code>float</code>, then an error is thrown.
{code}

I think you need to update this javadoc right? As per this, even  If no such property exists
also throws error.
Same case for other APIs also.

> Configuration getInt, getLong, and getFloat replace invalid numbers with the default
value
> ------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-2081
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2081
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 0.22.0
>            Reporter: Owen O'Malley
>            Assignee: Harsh J
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-2081.r1.diff, HADOOP-2081.r2.diff
>
>
> The current behavior of silently replace invalid numbers in the configuration with the
default value leads to hard to diagnose problems. The methods should throw an exception to
signal that the input was invalid.

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

        

Mime
View raw message