HBASE-16207 can't restore snapshot without "Admin" permission

This commit is contained in:
Matteo Bertozzi 2016-07-12 05:50:06 -07:00
parent 7227c27fe8
commit 2650711e94
1 changed files with 2 additions and 1 deletions

View File

@ -1189,7 +1189,8 @@ public class MasterRpcServices extends RSRpcServices
// Ensure namespace exists. Will throw exception if non-known NS.
TableName dstTable = TableName.valueOf(request.getSnapshot().getTable());
master.getNamespace(dstTable.getNamespaceAsString());
master.getClusterSchema().getNamespace(dstTable.getNamespaceAsString());
SnapshotDescription reqSnapshot = request.getSnapshot();
long procId = master.snapshotManager.restoreOrCloneSnapshot(
reqSnapshot, request.getNonceGroup(), request.getNonce());