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

Jitendra Nath Pandey edited comment on HDFS-15482 at 7/30/20, 5:37 PM:
-----------------------------------------------------------------------

We will need to consider a few cases here.
 # Do we allow to create the snapshot of the same name once a snapshot is 
marked for deletion, but not actually deleted? If deleted snapshots are no 
longer visible, user might want to create a snapshot of the same name and get 
surprised if it fails. On the other hand, if we allow it, system has two 
snapshots of the same name.
 # If the snapshot is deleted and hidden, does user get to force immediate 
delete (if it is in order)? It makes sense to allow users to be able to delete 
immediately if user is following the order. But a hidden snapshot will not be 
accessible anymore. This gets more complicated if user creates a snapshot of 
the same name.


was (Author: jnp):
We will need to consider a few cases here.
1) Do we allow to create the snapshot of the same name once a snapshot is 
marked for deletion, but not actually deleted? If deleted snapshots are no 
longer visible, user might want to create a snapshot of the same name and get 
surprised if it fails. On the other hand, if we allow it, system has two 
snapshots of the same name. 
2) If the snapshot is deleted and hidden, does user get to force immediate 
delete (if it is in order)? It makes sense to allow users to be able to delete 
immediately if user is following the order. But a hidden snapshot will not be 
accessible anymore. This gets more complicated if user creates a snapshot of 
the same name.






> Ordered snapshot deletion: hide the deleted snapshots from users
> ----------------------------------------------------------------
>
>                 Key: HDFS-15482
>                 URL: https://issues.apache.org/jira/browse/HDFS-15482
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: snapshots
>            Reporter: Tsz-wo Sze
>            Assignee: Shashikant Banerjee
>            Priority: Major
>
> In HDFS-15480,  the behavior of deleting the non-earliest snapshots is 
> changed to marking them as deleted in XAttr but not actually deleting them.  
> The users are still able to access the these snapshots as usual.
> In this JIRA, the marked-for-deletion snapshots are hided so that they become 
> inaccessible
> to users.



--
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

Reply via email to