hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6951) Saving namespace and restarting NameNode will remove existing encryption zones
Date Fri, 05 Sep 2014 22:24:28 GMT

    [ https://issues.apache.org/jira/browse/HDFS-6951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14123703#comment-14123703
] 

Andrew Wang commented on HDFS-6951:
-----------------------------------

Charles, do you mind rebasing this? It doesn't apply for me:

{noformat}
-> % git apply -p0 HDFS-6951.004.patch 
error: patch failed: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeLayoutVersion.java:65
error: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeLayoutVersion.java:
patch does not apply
error: cannot apply binary patch to 'hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored'
without full index line
error: hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored: patch does not apply
error: patch failed: hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml:1
error: hadoop-hdfs-project/hadoop-hdfs/src/test/resources/editsStored.xml: patch does not
apply
{noformat}

If you provide a {{git diff --binary}}, I can also apply that directly when doing the commit.

> Saving namespace and restarting NameNode will remove existing encryption zones
> ------------------------------------------------------------------------------
>
>                 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
>         Attachments: 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, 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)

Mime
View raw message