[
https://issues.apache.org/jira/browse/HBASE-13006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364062#comment-14364062
]
Jerry He commented on HBASE-13006:
----------------------------------
Hi, guys
All has been tested in the parent HBASE-12745. Also we have a test case
TestVisibilityLablesWithGroups to prevent regression.
For peace of mind, I did some testing again today. Works well.
As 'hbase' (super user):
{code}
a) create 'table1'
b) added 3 rows.
hbase(main):006:0> scan 'table1'
ROW COLUMN+CELL
r1 column=family:c1, timestamp=1426542420443,
value=value1
r2 column=family:c1, timestamp=1426542431203,
value=value2
r3 column=family:c1, timestamp=1426542439977,
value=value3
3 row(s) in 0.0330 seconds
c) add label 'private'
hbase(main):011:0> add_labels 'private'
0 row(s) in 0.3930 seconds
d) set label on r1 only
hbase(main):013:0> set_visibility 'table1', 'private', {FILTER =>
"(PrefixFilter ('r1'))"}
1 row(s) in 0.0450 seconds
{code}
As 'user1':
{code}
hbase(main):003:0> scan 'table1'
ROW COLUMN+CELL
r2 column=family:c1, timestamp=1426542431203,
value=value2
r3 column=family:c1, timestamp=1426542439977,
value=value3
2 row(s) in 0.0240 seconds
{code}
No r1, as expected.
As 'hbase':
{code}
hbase(main):014:0> set_auths '@users', 'private'
0 row(s) in 0.0480 seconds
hbase(main):015:0> get_auths '@users'
private
0 row(s) in 0.0450 seconds
{code}
As 'user1':
{code}
hbase(main):001:0> scan 'table1'
ROW COLUMN+CELL
r1 column=family:c1, timestamp=1426542420443,
value=value1
r2 column=family:c1, timestamp=1426542431203,
value=value2
r3 column=family:c1, timestamp=1426542439977,
value=value3
3 row(s) in 0.3670 seconds
{code}
As 'hbase':
{code}
hbase(main):016:0> clear_auths '@users', 'private'
0 row(s) in 0.0370 seconds
{code}
As 'user1':
{code}
hbase(main):002:0> scan 'table1'
ROW COLUMN+CELL
r2 column=family:c1, timestamp=1426542431203,
value=value2
r3 column=family:c1, timestamp=1426542439977,
value=value3
2 row(s) in 0.0220 seconds
{code}
r1 is not showing up, as expected.
> Document visibility label support for groups
> --------------------------------------------
>
> Key: HBASE-13006
> URL: https://issues.apache.org/jira/browse/HBASE-13006
> Project: HBase
> Issue Type: Sub-task
> Reporter: Jerry He
> Assignee: Jerry He
> Priority: Minor
> Fix For: 2.0.0
>
> Attachments: HBASE-13006-v2.patch, HBASE-13006-v3.patch,
> HBASE-13006.patch
>
>
> This is to document the changes added from HBASE-12745.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)