[
https://issues.apache.org/jira/browse/HBASE-8461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657819#comment-13657819
]
Matteo Bertozzi commented on HBASE-8461:
----------------------------------------
I'll prefer a new method deleteSnapshot(Pattern nameRegex) using a
listSnapshot(Pattern)
just too avoid to use the current string argument as regex and put name
restrictions API side.
(it seems that we already have a listTables(Pattern pattern).. so you may just
follow what we already have
I assume this will be just a client side change like this
{code}
deleteSnapshot(regex) {
for (SnapshotDescription snapshot: listSnapshots(regex)) {
getMaster().deleteSnapshot(snapshot);
}
}
{code}
> Provide the ability to delete multiple snapshots through single command
> -----------------------------------------------------------------------
>
> Key: HBASE-8461
> URL: https://issues.apache.org/jira/browse/HBASE-8461
> Project: HBase
> Issue Type: Improvement
> Reporter: Ted Yu
> Assignee: Ted Yu
>
> Currently HBaseAdmin#deleteSnapshot() accepts name of single snapshot.
> It is desirable to allow user to delete multiple snapshots by issuing one
> command.
> e.g. user may use regular expression to specify the names of snapshots to
> delete.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira