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

Matteo Bertozzi commented on HBASE-8572:
----------------------------------------

I tried with acl, and there the behaviour is a bit strange in my opinion, but 
is the same on drop_all.
basically listing tables or snapshots goes through so you see the list but then 
you get an exception that you are not able to delete.
for snapshots there is also another extra case, where you may be able to remove 
just a subset of the list (see HBASE-11869 Support snapshot owner) which means 
that you say Y and at the first deleteSnapshot failure the operation is aborted.

also I think that will be useful to print the snapshot information instead of 
just the name, at list you can spot if there is something named wrongly.
{code}
+        formatter.header([ "SNAPSHOT", "TABLE + CREATION TIME"])
         list.each do |snapshot|
-          puts snapshot.name
+          creation_time = Time.at(snapshot.getCreationTime() / 1000).to_s
+          formatter.row([ snapshot.getName, snapshot.getTable + " (" + 
creation_time + ")" ])
         end
{code}

any thoughts?

> Enhance delete_snapshot.rb to call snapshot deletion API with regex
> -------------------------------------------------------------------
>
>                 Key: HBASE-8572
>                 URL: https://issues.apache.org/jira/browse/HBASE-8572
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: Ashish Singhi
>             Fix For: 2.0.0, 0.98.8, 0.99.3
>
>         Attachments: HBASE-8572-v2.patch, HBASE-8572-v3.patch, 
> HBASE-8572.patch
>
>
> HBASE-8461 added the API to HBaseAdmin which allows user to specify regular 
> expression for deleting snapshots.
> This JIRA would allow delete_snapshot.rb to utilize this functionality.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to