[
https://issues.apache.org/jira/browse/HADOOP-11409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14250132#comment-14250132
]
Jason Lowe commented on HADOOP-11409:
-------------------------------------
Thanks for the patch, Gera!
When we throw the exception due to lacking a scheme, it would be very helpful
to users to mention the property where the bad URI originated to show them what
needs to be changed.
The unit test should have an Assert.fail call or something similar after the
getFileContext call, otherwise the lack of throwing an exception for a bad fs
URI will still pass the test.
"Excpected" s/b "Expected"
> FileContext.getFileContext can stack overflow if default fs misconfigured
> -------------------------------------------------------------------------
>
> Key: HADOOP-11409
> URL: https://issues.apache.org/jira/browse/HADOOP-11409
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.6.0
> Reporter: Jason Lowe
> Assignee: Gera Shegalov
> Attachments: HADOOP-11409.001.patch
>
>
> If the default filesystem is misconfigured such that it doesn't have a scheme
> then FileContext.getFileContext(URI, Configuration) will call
> FileContext.getFileContext(Configuration) which in turn calls the former and
> we loop until the stack explodes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)