You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2012/06/07 13:48:23 UTC

[jira] [Comment Edited] (HBASE-6096) AccessController v2

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

Andrew Purtell edited comment on HBASE-6096 at 6/7/12 11:46 AM:
----------------------------------------------------------------

bq. In TableAuthManager, we may need to maintain thread-safe data structures.

So let's consider using a [ReadWriteLock|http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/locks/ReadWriteLock.html] to protect for update. It is also possible to obtain a synchronized multimap with [Multimaps#synchronizedListMultimap|http://google-collections.googlecode.com/svn/trunk/javadoc/com/google/common/collect/Multimaps.html#synchronizedListMultimap(com.google.common.collect.ListMultimap)] but by far the most common access is read access, and concurrent read access is fine.

Edit: See HBASE-6186
                
      was (Author: apurtell):
    bq. In TableAuthManager, we may need to maintain thread-safe data structures.

So let's consider using a [ReadWriteLock|http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/locks/ReadWriteLock.html] to protect for update. It is also possible to obtain a synchronized multimap with [Multimaps#synchronizedListMultimap|http://google-collections.googlecode.com/svn/trunk/javadoc/com/google/common/collect/Multimaps.html#synchronizedListMultimap(com.google.common.collect.ListMultimap)] but by far the most common access is read access, and concurrent read access is fine.
                  
> AccessController v2
> -------------------
>
>                 Key: HBASE-6096
>                 URL: https://issues.apache.org/jira/browse/HBASE-6096
>             Project: HBase
>          Issue Type: Umbrella
>          Components: security
>    Affects Versions: 0.96.0, 0.94.1
>            Reporter: Andrew Purtell
>         Attachments: Security-ACL Matrix.pdf
>
>
> Umbrella issue for iteration on the initial AccessController drop.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira