Return-Path: X-Original-To: apmail-sentry-commits-archive@minotaur.apache.org Delivered-To: apmail-sentry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3CBC018EB6 for ; Thu, 4 Feb 2016 02:06:43 +0000 (UTC) Received: (qmail 63840 invoked by uid 500); 4 Feb 2016 02:06:43 -0000 Delivered-To: apmail-sentry-commits-archive@sentry.apache.org Received: (qmail 63800 invoked by uid 500); 4 Feb 2016 02:06:42 -0000 Mailing-List: contact commits-help@sentry.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sentry.incubator.apache.org Delivered-To: mailing list commits@sentry.incubator.apache.org Received: (qmail 63791 invoked by uid 99); 4 Feb 2016 02:06:42 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2016 02:06:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 80FC7C01A8 for ; Thu, 4 Feb 2016 02:06:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.649 X-Spam-Level: X-Spam-Status: No, score=-3.649 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.429] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id zmrQCRrHnYwL for ; Thu, 4 Feb 2016 02:06:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id AFA17428ED for ; Thu, 4 Feb 2016 02:06:40 +0000 (UTC) Received: (qmail 62261 invoked by uid 99); 4 Feb 2016 02:06:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2016 02:06:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 062472C1F6D for ; Thu, 4 Feb 2016 02:06:40 +0000 (UTC) Date: Thu, 4 Feb 2016 02:06:40 +0000 (UTC) From: "Anne Yu (JIRA)" To: commits@sentry.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SENTRY-1050) Improve clearAll method to drop each table inside one database instead of one drop database cascade command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SENTRY-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anne Yu updated SENTRY-1050: ---------------------------- Attachment: SENTRY-1050.0.patch > Improve clearAll method to drop each table inside one database instead of one drop database cascade command > ----------------------------------------------------------------------------------------------------------- > > Key: SENTRY-1050 > URL: https://issues.apache.org/jira/browse/SENTRY-1050 > Project: Sentry > Issue Type: Bug > Components: Sentry > Affects Versions: 1.5.1, 1.6.0, 1.7.0 > Reporter: Anne Yu > Assignee: Anne Yu > Attachments: SENTRY-1050.0.patch > > > {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)