[ https://issues.apache.org/jira/browse/HDFS-15687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shashikant Banerjee resolved HDFS-15687. ---------------------------------------- Fix Version/s: 3.4.0 Resolution: Duplicate > allowSnapshot fails when directory already has a Trash sub directory > -------------------------------------------------------------------- > > Key: HDFS-15687 > URL: https://issues.apache.org/jira/browse/HDFS-15687 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Nilotpal Nandi > Assignee: Shashikant Banerjee > Priority: Major > Fix For: 3.4.0 > > > Steps : > 1. Create an encryption zone , Trash directory would be created inside EZ > directory. > /opt/cloudera/parcels/CDH/bin/hdfs crypto -createZone -keyName > testkeysnapshot1605613314 -path > /user/hrt_6/test_dir1/snap_encrypt_dir1605613504 > 2. Try to make the EZ directory snapshottable. > /opt/cloudera/parcels/CDH/bin/hdfs dfsadmin -allowSnapshot > /user/hrt_6/test_dir1/snap_encrypt_dir1605613504 > It fails with error : > {noformat} > /opt/cloudera/parcels/CDH/bin/hdfs dfsadmin -allowSnapshot > /user/hrt_6/test_dir1/snap_encrypt_dir1605613504 > 2020-11-17 11:45:16,598|INFO|MainThread|machine.py:180 - > run()||GUID=b35fc918-ed08-4c5d-92c1-c5aab449fb10|allowSnapshot: Can't > provision trash for snapshottable directory > /user/hrt_6/test_dir1/snap_encrypt_dir1605613504 because trash path > /user/hrt_6/test_dir1/snap_encrypt_dir1605613504/.Trash already exists. > 2020-11-17 11:45:16,956|INFO|MainThread|machine.py:209 - > run()||GUID=b35fc918-ed08-4c5d-92c1-c5aab449fb10|Exit Code: 255{noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org