[
https://issues.apache.org/jira/browse/HBASE-12161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173627#comment-14173627
]
Matteo Bertozzi commented on HBASE-12161:
-----------------------------------------
I was testing the patch before committing it, but sometimes fails with:
{noformat}
testAccessControlClientGrantRevokeOnNamespace(org.apache.hadoop.hbase.security.access.TestAccessController)
Time elapsed: 1.544 sec <<< FAILURE!
java.lang.AssertionError: Expected action to pass for user 'testNS' but was
denied
at org.junit.Assert.fail(Assert.java:88)
at
org.apache.hadoop.hbase.security.access.SecureTestUtil.verifyAllowed(SecureTestUtil.java:158)
at
org.apache.hadoop.hbase.security.access.SecureTestUtil.verifyAllowed(SecureTestUtil.java:165)
at
org.apache.hadoop.hbase.security.access.TestAccessController.testAccessControlClientGrantRevokeOnNamespace(TestAccessController.java:2135)
{noformat}
the problem is that the grant/revoke was not applied yet. a simple
Thread.sleep() minimize the problem, but maybe you can add a better check
> Add support for grant/revoke on namespaces in AccessControlClient
> -----------------------------------------------------------------
>
> Key: HBASE-12161
> URL: https://issues.apache.org/jira/browse/HBASE-12161
> Project: HBase
> Issue Type: Improvement
> Reporter: Srikanth Srungarapu
> Assignee: Srikanth Srungarapu
> Priority: Minor
> Fix For: 2.0.0, 0.98.8, 0.99.2
>
> Attachments: HBASE-12161_0.98.patch, HBASE-12161_master.patch,
> HBASE-12161_master_v2.patch, HBASE-12161_v3.patch
>
>
> As per the description.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)