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

TestAccessController#verifyDenied can fail even if ADE is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.98.0, 0.99.0
    • None
    • None
    • None

    Description

      In TestAccessController#verifyDenied there is code attempting to deal with UTEs with AccessDeniedException as a nested cause. Although it would seem the code intends to handle the exception reported by a recently failed test on the 0.98 Hadoop 1.1 Jenkins build here:

      java.lang.reflect.UndeclaredThrowableException: Unknown exception in doAs
      Caused by: java.security.PrivilegedActionException: com.google.protobuf.ServiceException: Error calling method PingService.noop
      Caused by: com.google.protobuf.ServiceException: Error calling method PingService.noop
      Caused by: org.apache.hadoop.hbase.security.AccessDeniedExceptionorg.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions (user=UserB, scope=testCoprocessorExec, family=, action=EXEC)
      Caused by: org.apache.hadoop.hbase.ipc.RemoteWithExtrasException: org.apache.hadoop.hbase.security.AccessDeniedException: Insufficient permissions (user=UserB, scope=testCoprocessorExec, family=, action=EXEC)
      ...
      

      it didn't work properly.

      Attachments

        1. 10238.patch
          2 kB
          Andrew Kyle Purtell
        2. 10238-addendum-1.patch
          0.9 kB
          Andrew Kyle Purtell

        Activity

          People

            Unassigned Unassigned
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: