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

Add test to prevent further permission regression around table flush and snapshot

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0
    • test
    • None
    • Reviewed

    Description

      There is already a test for that in TestAccessController- https://github.com/apache/hbase/blob/master/hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestAccessController.java#L809, - however, those tests are hacked to not run the operations but the AC hooks directly. for eg. instead of triggering flush, it just runs ACCESS_CONTROLLER.preTableFlush(). It's not possible/good to change just a few tests there given that will break the overall design and make things harder to maintain.

      The new test should go in TestAdminOnlyOperations (and the test class name should probably be changed to TestRpcAccessChecks).

      Attachments

        1. HBASE-20199.003.branch-2.0.patch
          8 kB
          Josh Elser
        2. HBASE-20199.002.branch-2.0.patch
          7 kB
          Josh Elser
        3. HBASE-20199.001.branch-2.0.patch
          7 kB
          Josh Elser

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: