[ 
https://issues.apache.org/jira/browse/HBASE-10567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matteo Bertozzi updated HBASE-10567:
------------------------------------

    Attachment: HBASE-10567-v1.patch

v1 is slightly different, I've added the return check but moved the delete at 
the beginning, to avoid the case where the destination is another hbase cluster 
and someone will do a restore/clone during the ExportSnapshot operation.. by 
deleting the folder the snapshot will not be available for list/restore/clone 
until the end of the export.

> Add overwrite manifest option to ExportSnapshot
> -----------------------------------------------
>
>                 Key: HBASE-10567
>                 URL: https://issues.apache.org/jira/browse/HBASE-10567
>             Project: HBase
>          Issue Type: Bug
>          Components: snapshots
>    Affects Versions: 0.98.0, 0.94.16, 0.99.0, 0.96.1.1
>            Reporter: Matteo Bertozzi
>            Assignee: Matteo Bertozzi
>            Priority: Minor
>             Fix For: 0.99.0
>
>         Attachments: HBASE-10567-v0.patch, HBASE-10567-v1.patch
>
>
> If you want to export a snapshot twice (e.g. in case you accidentally removed 
> a file and now your snapshot is corrupted) you have to manually remove the 
> .hbase-snapshot/SNAPSHOT_NAME directory and then run the ExportSnapshot tool.
> Add an -overwrite option to this operation automatically.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to