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

Matteo Bertozzi commented on HBASE-12325:
-----------------------------------------

{quote}
I'm working on a tool that doesn't require any coordination. It just removes 
the files from the oldest snapshot that are not referenced any more. So as long 
as the oldest snapshot is not still in transition (pretty easy if you're 
keeping more than 2 snapshots). Then you can run clean up and snapshot in 
parallel.
{quote}
on the last sentence you are implying coordination (export and clean, not 
snapshot... snapshot are hbase local and don't impact what you do on the remote 
copy)
if you look at what I have attached it is basically what you are describing.


> Add Utility to remove snapshot from a directory
> -----------------------------------------------
>
>                 Key: HBASE-12325
>                 URL: https://issues.apache.org/jira/browse/HBASE-12325
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Elliott Clark
>            Assignee: Elliott Clark
>         Attachments: DeleteRemoteSnapshotTool.java
>
>
> If there are several snapshots exported to a single directory, it's nice to 
> be able to remove the oldest one. Since snapshots in the same directory can 
> share files it's not as simple as just removing all files in a snapshot.



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

Reply via email to