[ 
https://issues.apache.org/jira/browse/HIVE-14681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Prasanth Jayachandran updated HIVE-14681:
-----------------------------------------
    Status: Patch Available  (was: Open)

> 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
>            Assignee: Prasanth Jayachandran
>         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)

Reply via email to