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

TestAccessController depends on the execution order

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.5, 0.95.0
    • Fix Version/s: 0.98.0, 0.95.0
    • Component/s: security, test
    • Labels:
      None

      Description

      If testGrantRevoke() runs before testRead() you end up with, since testGrantRevoke() revokes the read right for the rouser.

      testRead(org.apache.hadoop.hbase.security.access.TestAccessController)  Time elapsed: 5.992 sec  <<< FAILURE!
      java.lang.AssertionError: Expected action to pass for user 'rouser' but was denied
              at org.junit.Assert.fail(Assert.java:88)
              at org.apache.hadoop.hbase.security.access.TestAccessController.verifyAllowed(TestAccessController.java:204)
              at org.apache.hadoop.hbase.security.access.TestAccessController.verifyAllowed(TestAccessController.java:211)
              at org.apache.hadoop.hbase.security.access.TestAccessController.verifyRead(TestAccessController.java:600)
              at org.apache.hadoop.hbase.security.access.TestAccessController.testRead(TestAccessController.java:627)
      

        Attachments

        1. HBASE-8122-v1.patch
          3 kB
          Matteo Bertozzi

          Activity

            People

            • Assignee:
              mbertozzi Matteo Bertozzi
              Reporter:
              mbertozzi Matteo Bertozzi
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: