[
https://issues.apache.org/jira/browse/HBASE-8572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200223#comment-14200223
]
Ashish Singhi commented on HBASE-8572:
--------------------------------------
bq. yeah not sure what is the best behaviour. I'll let you decide.
Currently I think of three ways,
1. To change the return type of HBaseAdmin#deleteSnapshots(final Pattern
pattern) to array same as other apis working regex.
But this may cause backward incompatibility.
2. To call HBaseAdmin#listSnapshots(String regex) again from the
delete_all_snapshot script just after HBaseAdmin#deleteSnapshots(String regex)
call and output the count of succeeded snapshots if any (+) list and count of
failed snapshots if any.
3. To add a new API in Admin like listOwnerSnapshots which returns snapshots
owned by only this user and call this api from delete_all_snapshot script.
Which one you suggest or do you have any other suggestions ?
> 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-v4.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)