Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6845

TestJdbcDriver.testShowRoleGrant can fail if TestJdbcDriver/TestJdbcDriver2 run together

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: Tests
    • Labels:
      None

      Description

      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:

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              jdere Jason Dere
              Reporter:
              jdere Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: