Anne Yu created SENTRY-1050:
-------------------------------

             Summary: Improve clearAll method to ignore non-test created 
databases
                 Key: SENTRY-1050
                 URL: https://issues.apache.org/jira/browse/SENTRY-1050
             Project: Sentry
          Issue Type: Bug
            Reporter: Anne Yu
            Assignee: Anne Yu


{code}
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)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to