hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Singhi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-8642) [Snapshot] List and delete snapshot by table
Date Fri, 03 Jul 2015 14:43:05 GMT

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

Ashish Singhi commented on HBASE-8642:
--------------------------------------

bq. some way for a user to know which set of snapshots got successfully deleted or failed.
This is how it will be displayed on the console.
{noformat}
hbase(main):002:0> delete_table_snapshots 't', '.*'
SNAPSHOT                              TABLE + CREATION TIME                              
                                                      
 a                                    t (Fri Jul 03 19:40:17 +0530 2015)                 
                                                      
 s                                    t (Fri Jul 03 19:40:19 +0530 2015)                 
                                                      
 s1                                   t (Fri Jul 03 19:40:21 +0530 2015)                 
                                                      

Delete the above 3 snapshots (y/n)?
y
Successfully deleted snapshot: a

Failed to delete snapshot: s, due to below exception,
org.apache.hadoop.hbase.snapshot.SnapshotDoesNotExistException: org.apache.hadoop.hbase.snapshot.SnapshotDoesNotExistException:
Snapshot 's' doesn't exist on the filesystem
	at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.deleteSnapshot(SnapshotManager.java:282)
	at org.apache.hadoop.hbase.master.MasterRpcServices.deleteSnapshot(MasterRpcServices.java:464)
	at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:49860)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2132)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:106)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
	at java.lang.Thread.run(Thread.java:745)

Successfully deleted snapshot: s1

0 row(s) in 0.0460 seconds

{noformat}

> [Snapshot] List and delete snapshot by table
> --------------------------------------------
>
>                 Key: HBASE-8642
>                 URL: https://issues.apache.org/jira/browse/HBASE-8642
>             Project: HBase
>          Issue Type: Improvement
>          Components: snapshots
>    Affects Versions: 0.98.0, 0.95.0, 0.95.1, 0.95.2
>            Reporter: Julian Zhou
>            Assignee: Ashish Singhi
>             Fix For: 2.0.0
>
>         Attachments: 8642-trunk-0.95-v0.patch, 8642-trunk-0.95-v1.patch, 8642-trunk-0.95-v2.patch,
HBASE-8642-v1.patch, HBASE-8642-v2.patch, HBASE-8642-v3.patch, HBASE-8642-v4.patch, HBASE-8642.patch
>
>
> Support list and delete snapshots by table names.
> User scenario:
> A user wants to delete all the snapshots which were taken in January month for a table
't' where snapshot names starts with 'Jan'.



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

Mime
View raw message