[
https://issues.apache.org/jira/browse/HDFS-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Wang updated HDFS-6951:
------------------------------
Resolution: Fixed
Fix Version/s: 2.6.0
Status: Resolved (was: Patch Available)
+1 LGTM, thanks Charles for the patch and Yi for reviewing.
> Correctly persist raw namespace xattrs to edit log and fsimage
> --------------------------------------------------------------
>
> Key: HDFS-6951
> URL: https://issues.apache.org/jira/browse/HDFS-6951
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: encryption
> Affects Versions: 3.0.0
> Reporter: Stephen Chu
> Assignee: Charles Lamb
> Fix For: 2.6.0
>
> Attachments: HDFS-6951-editsStored-binary,
> HDFS-6951-prelim.002.patch, HDFS-6951-testrepo.patch, HDFS-6951.001.patch,
> HDFS-6951.002.patch, HDFS-6951.003.patch, HDFS-6951.004.patch,
> HDFS-6951.005.patch, HDFS-6951.006.patch, HDFS-6951.007.patch, editsStored
>
>
> Currently, when users save namespace and restart the NameNode, pre-existing
> encryption zones will be wiped out.
> I could reproduce this on a pseudo-distributed cluster:
> * Create an encryption zone
> * List encryption zones and verify the newly created zone is present
> * Save the namespace
> * Kill and restart the NameNode
> * List the encryption zones and you'll find the encryption zone is missing
> I've attached a test case for {{TestEncryptionZones}} that reproduces this as
> well. Removing the saveNamespace call will get the test to pass.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)