Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8702A200B85 for ; Wed, 31 Aug 2016 22:31:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 856BE160AB4; Wed, 31 Aug 2016 20:31:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC966160AA7 for ; Wed, 31 Aug 2016 22:31:21 +0200 (CEST) Received: (qmail 29985 invoked by uid 500); 31 Aug 2016 20:31:21 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 29950 invoked by uid 99); 31 Aug 2016 20:31:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 20:31:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B423A2C1B87 for ; Wed, 31 Aug 2016 20:31:20 +0000 (UTC) Date: Wed, 31 Aug 2016 20:31:20 +0000 (UTC) From: "Siddharth Seth (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14681) Remove AssertionError for non zero return codes in QTestUtil cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 Aug 2016 20:31:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Siddharth Seth updated HIVE-14681: ---------------------------------- Attachment: HIVE-14681.01.patch Trivial patch. [~hsubramaniyan] - can you please review when you get a chance. > Remove AssertionError for non zero return codes in QTestUtil cleanup > -------------------------------------------------------------------- > > Key: HIVE-14681 > URL: https://issues.apache.org/jira/browse/HIVE-14681 > Project: Hive > Issue Type: Sub-task > Components: Testing Infrastructure > Reporter: Siddharth Seth > Attachments: HIVE-14681.01.patch > > > This was added in HIVE-14625. > Causes some tests to fail randomly - after executing all the actual queries. > Shows up as > {code} > org.apache.hadoop.hive.cli.TestCliDriver.org.apache.hadoop.hive.cli.TestCliDriver > {code} > without any test name. > The failures are related to the inability to drop databases. I suspect this has something to do with specific q files running grant etc statements. > Will create a separate jira to track this down. > Fow now, I think it makes sense to convert the Assertion to a warning. > {code}java.lang.AssertionError: Failed during cleanup processLine with code=403{code} > {code}2016-08-31T11:47:05,627 ERROR [adab525e-198b-49f9-a2c3-8cc7df47b8ea main] ql.Driver: Authorization failed:No privilege 'Drop' found for outputs { database:default, table:src}. Use SHOW GRANT to get more details.{code} > {code}java.lang.AssertionError: Failed during cleanup processLine with code=40000{code} > {code}2016-08-31T11:41:29,849 ERROR [3906df31-d034-4dfe-8f78-239140c686aa main] ql.Driver: FAILED: HiveAccessControlException Permission denied: Principal [name=user1, type=USER] does not have following privileges for operation DROPTABLE [[OBJECT OWNERSHIP] on Object [type=TABLE_OR_VIEW, name=default.src]] > org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException: Permission denied: Principal [name=user1, type=USER] does not have following privileges for operation DROPTABLE [[OBJECT OWNERSHIP] on Object [type=TABLE_OR_VIEW, name=default.src]] > at org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLAuthorizationUtils.assertNoDeniedPermissions(SQLAuthorizationUtils.java:476) > at org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizationValidator.checkPrivileges(SQLStdHiveAuthorizationValidator.java:86) > at org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizationValidatorForTest.checkPrivileges(SQLStdHiveAuthorizationValidatorForTest.java:104) > at org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizerImpl.checkPrivileges(HiveAuthorizerImpl.java:87) > at org.apache.hadoop.hive.ql.Driver.doAuthorizationV2(Driver.java:868) > at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:655) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:502) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:342) > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1235) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1355) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1143) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1131) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:183) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:399) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:335) > at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:861) > at org.apache.hadoop.hive.ql.QTestUtil.cleanUp(QTestUtil.java:838) > at org.apache.hadoop.hive.ql.QTestUtil.shutdown(QTestUtil.java:500) > at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:138) > at org.apache.hadoop.hive.cli.control.CoreCliDriver$6.invokeInternal(CoreCliDriver.java:135) > at org.apache.hadoop.hive.util.ElapsedTimeLoggingWrapper.invoke(ElapsedTimeLoggingWrapper.java:33) > at org.apache.hadoop.hive.cli.control.CoreCliDriver.shutdown(CoreCliDriver.java:141) > at org.apache.hadoop.hive.cli.control.CliAdapter$1$1.evaluate(CliAdapter.java:75) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner.run(ParentRunner.java:309) > at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367) > at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274) > at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) > at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161) > at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) > at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) > at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) > 2016-08-31T11:41:29,849 INFO [3906df31-d034-4dfe-8f78-239140c686aa main] metadata.Hive: Dumping metastore api call timing information for : compilation phase > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)