LiXin Ge commented on HDFS-13087:

For example:
1. make dir
2. take a snapshot
3. create EncryptionZone
4. {{getEncryptionZoneForPath}} on the snapshot path should return {{null}}, 
not {{EncryptionZone}} as in current implementation.

This patch fix that issue, the related unit test such as 
{{TestEncryptionZones}}, {{TestReencryption}},
 {{TestReencryptionHandler}}, {{TestReencryptionWithKMS}} succeeded in my local 
server. Please kindly review it.

> Fix: Snapshots On encryption zones get incorrect EZ settings when encryption 
> zone changes
> -----------------------------------------------------------------------------------------
>                 Key: HDFS-13087
>                 URL: https://issues.apache.org/jira/browse/HDFS-13087
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: encryption
>    Affects Versions: 3.1.0
>            Reporter: LiXin Ge
>            Assignee: LiXin Ge
>            Priority: Major
>         Attachments: HDFS-13087.001.patch
> Snapshots are supposed to be immutable and read only, so the EZ settings 
> which in a snapshot path shouldn't change when the origin encryption zone 
> changes.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to