[ 
https://issues.apache.org/jira/browse/HADOOP-5687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran updated HADOOP-5687:
-----------------------------------

    Status: Patch Available  (was: Reopened)

This will fail, but I want everyone to see the messages are fairly useless. 
Half the problem is URI.create that turns the UriSyntaxException into a runtime 
IllegalArgumentException, which floats up without telling the user why things 
went wrong

I propose that, at a minimum, {{FileSystem.getDefaultUri()}} should replace 
{{URI.create())} with something that catches the syntax exceptions and says 
that fs.default.name is wrong. If someone really has time on their hands, they 
could look through all uses of {{URI.create())} outside of the test code and 
decide if they should stay. Having had a quick run through, I dont see any that 
are as urgent as this one.



> Hadoop NameNode throws NPE if fs.default.name is the default value
> ------------------------------------------------------------------
>
>                 Key: HADOOP-5687
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5687
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: Philip Zeyliger
>            Assignee: Philip Zeyliger
>            Priority: Minor
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-5687-extension-1.patch, HADOOP-5687-v3.patch, 
> HADOOP-5687-v4.patch, HADOOP-5687-v5.patch, HADOOP-5687-v5.patch, 
> HADOOP-5687.patch, HADOOP-5687.patch
>
>
> Throwing NPE is confusing; instead, an exception with a useful string 
> description could be thrown instead.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to