Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-533

[Unit Test] TestHDFSIntegration.testEnd2End is failing due to NPE in Sentry Service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 1.5.0
    • 1.5.0
    • None
    • None

    Description

      The TestHDFSIntegration.testEnd2End is failing repeatedly in the CI runs. Recent example is:
      https://builds.apache.org/job/Sentry-jdk-1.7/108/

      It looks like there is a NPE from the server side callstack.

      Error Message
      -----------------------
      Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryGrantRevokeTask. Unknown error for request: TAlterSentryRoleGrantPrivilegeRequest(protocol_version:1, requestorUserName:hive, roleName:admin_role, privileges:[TSentryPrivilege(privilegeScope:SERVER, serverName:server1, dbName:, tableName:, URI:, action:*, createTime:1416386831228, grantOption:FALSE, columnName:)]), message: null. Server Stacktrace: java.lang.NullPointerException
       at org.apache.sentry.hdfs.SentryPlugin.getAuthzObj(SentryPlugin.java:222)
       at org.apache.sentry.hdfs.SentryPlugin.onAlterSentryRoleGrantPrivilege(SentryPlugin.java:161)
       at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.alter_sentry_role_grant_privilege(SentryPolicyStoreProcessor.java:269)
       at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$alter_sentry_role_grant_privilege.getResult(SentryPolicyService.java:933)
       at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$alter_sentry_role_grant_privilege.getResult(SentryPolicyService.java:918)
       at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
       at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
       at org.apache.sentry.provider.db.service.thrift.SentryProcessorWrapper.process(SentryProcessorWrapper.java:48)
       at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
       at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
       at java.lang.Thread.run(Thread.java:724)
      
      
      Stacktrace
      ---------------------------
      java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.SentryGrantRevokeTask. Unknown error for request: TAlterSentryRoleGrantPrivilegeRequest(protocol_version:1, requestorUserName:hive, roleName:admin_role, privileges:[TSentryPrivilege(privilegeScope:SERVER, serverName:server1, dbName:, tableName:, URI:, action:*, createTime:1416386831228, grantOption:FALSE, columnName:)]), message: null. Server Stacktrace: java.lang.NullPointerException
      	at org.apache.sentry.hdfs.SentryPlugin.getAuthzObj(SentryPlugin.java:222)
      	at org.apache.sentry.hdfs.SentryPlugin.onAlterSentryRoleGrantPrivilege(SentryPlugin.java:161)
      	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.alter_sentry_role_grant_privilege(SentryPolicyStoreProcessor.java:269)
      	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$alter_sentry_role_grant_privilege.getResult(SentryPolicyService.java:933)
      	at org.apache.sentry.provider.db.service.thrift.SentryPolicyService$Processor$alter_sentry_role_grant_privilege.getResult(SentryPolicyService.java:918)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.sentry.provider.db.service.thrift.SentryProcessorWrapper.process(SentryProcessorWrapper.java:48)
      	at org.apache.thrift.TMultiplexedProcessor.process(TMultiplexedProcessor.java:123)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:244)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      
      	at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:277)
      	at org.apache.sentry.tests.e2e.hdfs.TestHDFSIntegration.testEnd2End(TestHDFSIntegration.java:480)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lskuff Lenni Kuff
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: