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

dhruba borthakur commented on HADOOP-3409:
------------------------------------------

In this patch, the loadFSImage method does the following:

if (path.length() == 0) {
  // assume that this is the root inode.
}

will it be more explicit if we replace the above piece of code with the 
following:

if (i == 0) {
  // the first entry is always the root inode.
}

> NameNode should save the root inode into fsimage
> ------------------------------------------------
>
>                 Key: HADOOP-3409
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3409
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.17.0
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.18.0
>
>         Attachments: rootImage.patch
>
>
> Currently namenode does not save the root inode into the image. Therefore the 
> root's attributes like modification time, permission, and quota in the future 
> are not persistent.

-- 
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