hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16724) Snapshot owner can't clone
Date Sat, 15 Oct 2016 18:33:22 GMT

    [ https://issues.apache.org/jira/browse/HBASE-16724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15578548#comment-15578548
] 

Hudson commented on HBASE-16724:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-1.4 #472 (See [https://builds.apache.org/job/HBase-1.4/472/])
HBASE-16724 Snapshot owner can't clone (ashishsinghi: rev b7f283c6f6728238bb553c80aa6eafce0df0d650)
* (edit) src/main/asciidoc/_chapters/appendix_acl_matrix.adoc
* (edit) hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java
* (edit) hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/AccessController.java


> Snapshot owner can't clone
> --------------------------
>
>                 Key: HBASE-16724
>                 URL: https://issues.apache.org/jira/browse/HBASE-16724
>             Project: HBase
>          Issue Type: Bug
>          Components: snapshots
>    Affects Versions: 2.0.0
>            Reporter: Pankaj Kumar
>            Assignee: Pankaj Kumar
>             Fix For: 2.0.0, 1.4.0
>
>         Attachments: HBASE-16724-V2.patch, HBASE-16724-V3.patch, HBASE-16724-branch-1.1.patch,
HBASE-16724-branch-1.2.patch, HBASE-16724-branch-1.3.patch, HBASE-16724-branch-1.patch, HBASE-16724.patch
>
>
> Currently only Global admin has the access of cloning a snapshot.
> In AccessController,
> {code}
>   @Override
>   public void preCloneSnapshot(final ObserverContext<MasterCoprocessorEnvironment>
ctx,
>       final SnapshotDescription snapshot, final HTableDescriptor hTableDescriptor)
>       throws IOException {
>     requirePermission(getActiveUser(ctx), "cloneSnapshot " + snapshot.getName(), Action.ADMIN);
>   }
> {code}
> Snapshot owner should be able to  clone it, need to add a check like,
> {code}
> SnapshotDescriptionUtils.isSnapshotOwner(snapshot, user)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message