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

TestTablePermission 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.94.7, 0.95.0
    • Component/s: test
    • Labels:
      None

      Description

      All the tests changes the acl table but they don't clear the state.
      If testGlobalPermission() runs before testBasicWrite() you end up with

      java.lang.AssertionError: Full permission map should have entries for both test tables expected:<2> but was:<3>
      	at org.junit.Assert.fail(Assert.java:93)
      	at org.junit.Assert.failNotEquals(Assert.java:647)
      	at org.junit.Assert.assertEquals(Assert.java:128)
      	at org.junit.Assert.assertEquals(Assert.java:472)
      	at org.apache.hadoop.hbase.security.access.TestTablePermissions.testBasicWrite(TestTablePermissions.java:181)
      

        Attachments

        1. HBASE-8118-v0.patch
          1 kB
          Matteo Bertozzi

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: