You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/06/01 17:20:59 UTC
[jira] [Commented] (HBASE-15873) ACL for snapshot restore / clone
is not enforced
[ https://issues.apache.org/jira/browse/HBASE-15873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15310689#comment-15310689 ]
Hudson commented on HBASE-15873:
--------------------------------
FAILURE: Integrated in HBase-0.98-on-Hadoop-1.1 #1222 (See [https://builds.apache.org/job/HBase-0.98-on-Hadoop-1.1/1222/])
HBASE-15873 ACL for snapshot restore / clone is not enforced (apurtell: rev 7be7b8ad9622a2297dcd00a5f580d748e08f33e0)
* hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java
> ACL for snapshot restore / clone is not enforced
> ------------------------------------------------
>
> Key: HBASE-15873
> URL: https://issues.apache.org/jira/browse/HBASE-15873
> Project: HBase
> Issue Type: Bug
> Affects Versions: 1.1.0
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Critical
> Fix For: 1.3.0, 1.4.0, 1.2.2, 0.98.20, 1.1.6
>
> Attachments: HBASE-15873-branch-1.v1.txt
>
>
> [~romil.choksi] reported that snapshot owner couldn't restore snapshot on hbase 1.1
> We saw the following in master log:
> {code}
> 2016-05-20 00:22:17,186 DEBUG [B.defaultRpcServer.handler=23,queue=2,port=20000] ipc.RpcServer: B.defaultRpcServer.handler=23,queue=2,port=20000: callId: 15 service: MasterService methodName: RestoreSnapshot size: 70 connection: x.y:56508
> org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions for user 'hrt_1' (global, action=ADMIN)
> at org.apache.hadoop.hbase.security.access.AccessController.requireGlobalPermission(AccessController.java:536)
> at org.apache.hadoop.hbase.security.access.AccessController.requirePermission(AccessController.java:512)
> at org.apache.hadoop.hbase.security.access.AccessController.preRestoreSnapshot(AccessController.java:1327)
> at org.apache.hadoop.hbase.master.MasterCoprocessorHost$73.call(MasterCoprocessorHost.java:881)
> at org.apache.hadoop.hbase.master.MasterCoprocessorHost.execOperation(MasterCoprocessorHost.java:1146)
> at org.apache.hadoop.hbase.master.MasterCoprocessorHost.preRestoreSnapshot(MasterCoprocessorHost.java:877)
> at org.apache.hadoop.hbase.master.snapshot.SnapshotManager.restoreSnapshot(SnapshotManager.java:726)
> {code}
> After adding some debug information, it turned out that the (request) SnapshotDescription passed to the method doesn't have owner set.
> This problem doesn't exist in master branch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)