You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jason Dere (JIRA)" <ji...@apache.org> on 2014/04/05 00:35:16 UTC

[jira] [Updated] (HIVE-6845) TestJdbcDriver.testShowRoleGrant can fail if TestJdbcDriver/TestJdbcDriver2 run together

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

Jason Dere updated HIVE-6845:
-----------------------------

    Attachment: HIVE-6845.1.patch

Patch to drop the role at the start of testShowRoleGrant(), before creating the role as part of the test.

> TestJdbcDriver.testShowRoleGrant can fail if TestJdbcDriver/TestJdbcDriver2 run together
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-6845
>                 URL: https://issues.apache.org/jira/browse/HIVE-6845
>             Project: Hive
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-6845.1.patch
>
>
> Running both TestJdbcDriver/TestJdbcDriver2 together in the same run gives an error in testShowRoleGrant() because both tests create the role "role1".  When the 2nd test tries to create the role it fails:
> {noformat}
> testShowRoleGrant(org.apache.hive.jdbc.TestJdbcDriver2)  Time elapsed: 1.801 sec  <<< ERROR!
> java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> 	at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:275)
> 	at org.apache.hive.jdbc.TestJdbcDriver2.testShowRoleGrant(TestJdbcDriver2.java:2000)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)