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

TestTablePermission depends on the execution order

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.5, 0.95.0
    • 0.98.0, 0.94.7, 0.95.0
    • test
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mbertozzi Matteo Bertozzi
            mbertozzi Matteo Bertozzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment