Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10878

Operator | for visibility label doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      I used setup similar to that from HBASE-10863, with fix for HBASE-10863 :

      hbase(main):003:0> scan 'hbase:labels'
      ROW                                          COLUMN+CELL
       \x00\x00\x00\x01                            column=f:\x00, timestamp=1395944796030, value=system
       \x00\x00\x00\x01                            column=f:hbase, timestamp=1395944796030, value=
       \x00\x00\x00\x02                            column=f:\x00, timestamp=1395951045442, value=TOP_SECRET
       \x00\x00\x00\x02                            column=f:hrt_qa, timestamp=1395951229682, value=
       \x00\x00\x00\x02                            column=f:hrt_qa1, timestamp=1395951270297, value=
       \x00\x00\x00\x02                            column=f:mapred, timestamp=1395958442326, value=
       \x00\x00\x00\x03                            column=f:\x00, timestamp=1395952069731, value=TOP_TOP_SECRET
       \x00\x00\x00\x03                            column=f:mapred, timestamp=1395956032141, value=
       \x00\x00\x00\x04                            column=f:\x00, timestamp=1395971516605, value=A
       \x00\x00\x00\x04                            column=f:oozie, timestamp=1395971647859, value=
       \x00\x00\x00\x05                            column=f:\x00, timestamp=1395971520327, value=B
      5 row(s) in 0.0580 seconds
      

      I did the following as user oozie using hbase shell:

      hbase(main):001:0> scan 'tb', { AUTHORIZATIONS => ['A']}
      ROW                                          COLUMN+CELL
       row                                         column=f1:q, timestamp=1395971660859, value=v1
       row2                                        column=f1:q, timestamp=1395972271343, value=v2
       row3                                        column=f1:q, timestamp=1396067477702, value=v3
      3 row(s) in 0.2050 seconds
      
      hbase(main):002:0> scan 'tb', { AUTHORIZATIONS => ['A|B']}
      ROW                                          COLUMN+CELL
       row2                                        column=f1:q, timestamp=1395972271343, value=v2
      1 row(s) in 0.0150 seconds
      
      hbase(main):003:0> scan 'tb', { AUTHORIZATIONS => ['B|A']}
      ROW                                          COLUMN+CELL
       row2                                        column=f1:q, timestamp=1395972271343, value=v2
      1 row(s) in 0.0260 seconds
      

      Rows 'row' and 'row3' were inserted with label 'A'.
      Row 'row2' was inserted without label.
      Row 'row1' was inserted with label 'B'.

      I would expect row1 to also be returned.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: