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

Gera Shegalov commented on HADOOP-15973:
----------------------------------------

Thanks [~eepayne] for the patches, not that it's part of your change but since 
you are already touching this code; it's not necessary to do call getPath for 
local files in:
{code:java}
// Can't use FileSystem API or we get an infinite loop
// since FileSystem uses Configuration API. Use java.io.File instead.
File file = new File(((Path)resource).toUri().getPath())
 .getAbsoluteFile();
{code}

> Configuration: Included properties are not cached if resource is a stream
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-15973
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15973
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Eric Payne
>            Assignee: Eric Payne
>            Priority: Critical
>         Attachments: HADOOP-15973.001.patch, HADOOP-15973.002.patch, 
> HADOOP-15973.003.patch
>
>
> If a configuration resource is a bufferedinputstream and the resource has an 
> included xml file, the properties from the included file are read and stored 
> in the properties of the configuration, but they are not stored in the 
> resource cache. So, if a later resource is added to the config and the 
> properties are recalculated from the first resource, the included properties 
> are lost.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to