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

Xiao Chen updated HDFS-9470:
----------------------------
    Attachment: HDFS-9470.001.patch

Attached patch 1 fixes the issue. Locally verified the unit test fails without 
the fix, passes with.
I choose to add the method {{addRootDirToEncryptionZone}} so that {{ezManager}} 
is still private in {{FSDirectory}}. (Directly using {{addToInodeMap}} would be 
problematic, because the {{INodeDirectory root}} is temporary and not the same 
object as {{FSDirectory.rootDir}})

> EncryptionZone on rootDir missing after NNrestart
> -------------------------------------------------
>
>                 Key: HDFS-9470
>                 URL: https://issues.apache.org/jira/browse/HDFS-9470
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>         Attachments: HDFS-9470.001.patch
>
>
> When restarting namenode, the encryption zone for {{rootDir}} is not loaded 
> correctly from fsimage



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to