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

Todd Lipcon updated HDFS-1558:
------------------------------

    Component/s: performance
                 namenode
    
> Optimize FSNamesystem.startFileInternal
> ---------------------------------------
>
>                 Key: HDFS-1558
>                 URL: https://issues.apache.org/jira/browse/HDFS-1558
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode, performance
>            Reporter: Dmytro Molkov
>            Assignee: Dmytro Molkov
>            Priority: Minor
>             Fix For: 0.24.0
>
>
> Currently on file creation inside of FSNamesystem.startFileInternal there are 
> three calls to FSDirectory that are essentially the same:
> dir.exists(src)
> dir.isDir(src)
> dir.getFileInode(src)
> All of them have to fetch the inode and then do some processing on it.
> If instead we were to fetch the inode once and then do all of the processing 
> on this INode object it would save us two trips through the namespace + 2 
> calls to normalizePath all of which are relatively expensive.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to