You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2020/08/26 17:13:00 UTC

[jira] [Created] (HDFS-15539) When disallowing snapshot on a dir, throw exception if its snapshot root is not empty

Siyao Meng created HDFS-15539:
---------------------------------

             Summary: When disallowing snapshot on a dir, throw exception if its snapshot root is not empty
                 Key: HDFS-15539
                 URL: https://issues.apache.org/jira/browse/HDFS-15539
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: hdfs
            Reporter: Siyao Meng
            Assignee: Siyao Meng


When snapshot is disallowed on a dir, {{getTrashRoots()}} won't return the trash root in that dir anymore (if any). The risk is the trash root will be left there forever.
We need to throw an exception there and prompt the user to clean up or rename the trash root if it is not empty.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org