[
https://issues.apache.org/jira/browse/HDFS-13483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Harshakiran Reddy updated HDFS-13483:
-------------------------------------
Description:
{{Scenario:}}
# Create a Dir
# Create EZ for the above dir with Key1
# Again you can try to create ZONE for same directory with the same Key1
{noformat}
hadoopclient> hadoop key list
Listing keys for KeyProvider:
org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider@152aa092
key2
key1
hadoopclient> hdfs dfs -mkdir /kms
hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
Added encryption zone /kms
hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
RemoteException: Attempt to create an encryption zone for a non-empty
directory.{noformat}
Actual Output:
===========
{{RemoteException:Attempt to create an encryption zone for non-empty
directory}}
Expected Output:
=============
Exception should be like {{EZ is already created with the same key}}
was:
{{Scenario:}}
# Create a Dir
# Create EZ for the above dir with Key1
# Again you can try to create ZONE for same directory with the same Key1
{noformat}
hadoopclient> hadoop key list
Listing keys for KeyProvider:
org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider@152aa092
key2
key1
hadoopclient> hdfs dfs -mkdir /kms
hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
Added encryption zone /kms
hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
RemoteException: Attempt to create an encryption zone for a non-empty
directory.{noformat}
Actual Output:
===========
Exception should be like {{EZ is already created with the same key}}
Expected Output:
=============
{{RemoteException:Attempt to create an encryption zone for non-empty
directory}}
> Crypto command should give proper exception when user is trying to create an
> EZ with the same key with which it is already created
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: HDFS-13483
> URL: https://issues.apache.org/jira/browse/HDFS-13483
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs, kms
> Affects Versions: 2.8.3
> Reporter: Harshakiran Reddy
> Assignee: Ranith Sardar
> Priority: Major
>
> {{Scenario:}}
> # Create a Dir
> # Create EZ for the above dir with Key1
> # Again you can try to create ZONE for same directory with the same Key1
> {noformat}
> hadoopclient> hadoop key list
> Listing keys for KeyProvider:
> org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider@152aa092
> key2
> key1
> hadoopclient> hdfs dfs -mkdir /kms
> hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
> Added encryption zone /kms
> hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
> RemoteException: Attempt to create an encryption zone for a non-empty
> directory.{noformat}
> Actual Output:
> ===========
> {{RemoteException:Attempt to create an encryption zone for non-empty
> directory}}
> Expected Output:
> =============
> Exception should be like {{EZ is already created with the same key}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]