hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject [1/6] hbase git commit: HBASE-16207 can't restore snapshot without "Admin" permission
Date Tue, 12 Jul 2016 13:29:04 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 ad064c718 -> a16fb9ee0
  refs/heads/branch-1 7fa311a94 -> 36a48a3cf
  refs/heads/branch-1.1 79b77e354 -> 67d057451
  refs/heads/branch-1.2 b96b04204 -> 9b5f19eae
  refs/heads/branch-1.3 0fda2bc9e -> 51eee9a22
  refs/heads/master 7227c27fe -> 2650711e9


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


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2650711e
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2650711e
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2650711e

Branch: refs/heads/master
Commit: 2650711e944244b3b87e6d6805b7716b216e8786
Parents: 7227c27
Author: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Authored: Tue Jul 12 05:50:06 2016 -0700
Committer: Matteo Bertozzi <matteo.bertozzi@cloudera.com>
Committed: Tue Jul 12 05:50:06 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/master/MasterRpcServices.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2650711e/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
index 2f65e97..ef4688f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
@@ -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());


Mime
View raw message