[
https://issues.apache.org/jira/browse/HDFS-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Allen Wittenauer updated HDFS-1558:
-----------------------------------
Fix Version/s: (was: 0.24.0)
> 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
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)