Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-1050

Improve clearAll method to avoid throwing exceptions because of deleting objects created outside of tests.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1, 1.6.0, 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: Sentry
    • Labels:
      None

      Description

      org.apache.sentry.tests.e2e.dbprovider.TestDbUriPermissions.testAlterPartitionLocationPrivileges
      
      Failing for the past 1 build (Since Unstable#4115 )
      Took 1.2 sec.
      add description
      Error Message
      
      Error while compiling statement: FAILED: SemanticException [Error 10001]: Table not found cm_test_table
      Stacktrace
      
      org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException [Error 10001]: Table not found cm_test_table
      	at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:231)
      	at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:217)
      	at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:244)
      	at org.apache.sentry.tests.e2e.hive.AbstractTestWithStaticConfiguration.clearAll(AbstractTestWithStaticConfiguration.java:482)
      	at org.apache.sentry.tests.e2e.hive.AbstractTestWithStaticConfiguration.setup(AbstractTestWithStaticConfiguration.java:454)
      	at org.apache.sentry.tests.e2e.hive.TestUriPermissions.setup(TestUriPermissions.java:53)
      	at org.apache.sentry.tests.e2e.dbprovider.TestDbUriPermissions.setup(TestDbUriPermissions.java:36)
      Caused by: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException [Error 10001]: Table not found cm_test_table
      	at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:326)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:101)
      	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:170)
      	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:268)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:410)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:397)
      	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:258)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:506)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:695)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
      	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:745)
      Caused by: org.apache.hadoop.hive.ql.parse.SemanticException: Table not found cm_test_table
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.getTable(BaseSemanticAnalyzer.java:1332)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeDropDatabase(DDLSemanticAnalyzer.java:794)
      	at org.apache.hadoop.hive.ql.parse.DDLSemanticAnalyzer.analyzeInternal(DDLSemanticAnalyzer.java:426)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:222)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:432)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:305)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1119)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1112)
      	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:99)
      	at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:170)
      	at org.apache.hive.service.cli.operation.Operation.run(Operation.java:268)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:410)
      	at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:397)
      	at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:258)
      	at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:506)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
      	at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
      	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      	at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:695)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
      	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:745)
      

        Attachments

        1. SENTRY-1050.3.patch
          5 kB
          Anne Yu
        2. SENTRY-1050.2.patch
          5 kB
          Anne Yu
        3. SENTRY-1050.1.patch
          5 kB
          Anne Yu
        4. SENTRY-1050.0.patch
          5 kB
          Anne Yu

          Issue Links

            Activity

              People

              • Assignee:
                anneyu Anne Yu
                Reporter:
                anneyu Anne Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: