Hive
  1. Hive
  2. HIVE-6845

TestJdbcDriver.testShowRoleGrant can fail if TestJdbcDriver/TestJdbcDriver2 run together

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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)
      

        Activity

        Hide
        Ashutosh Chauhan added a comment -

        Committed to 0.13 & trunk.

        Show
        Ashutosh Chauhan added a comment - Committed to 0.13 & trunk.
        Hide
        Thejas M Nair added a comment -

        By run together, I assume you mean run in same setup/jvm (as against being run simultaneously).

        +1

        Show
        Thejas M Nair added a comment - By run together, I assume you mean run in same setup/jvm (as against being run simultaneously). +1
        Hide
        Hive QA added a comment -

        Overall: -1 at least one tests failed

        Here are the results of testing the latest attachment:
        https://issues.apache.org/jira/secure/attachment/12638787/HIVE-6845.1.patch

        ERROR: -1 due to 1 failed/errored test(s), 5547 tests executed
        Failed tests:

        org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_bucket_num_reducers
        

        Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2140/testReport
        Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2140/console

        Messages:

        Executing org.apache.hive.ptest.execution.PrepPhase
        Executing org.apache.hive.ptest.execution.ExecutionPhase
        Executing org.apache.hive.ptest.execution.ReportingPhase
        Tests exited with: TestsFailedException: 1 tests failed
        

        This message is automatically generated.

        ATTACHMENT ID: 12638787

        Show
        Hive QA added a comment - Overall : -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12638787/HIVE-6845.1.patch ERROR: -1 due to 1 failed/errored test(s), 5547 tests executed Failed tests: org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_bucket_num_reducers Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2140/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2140/console Messages: Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 1 tests failed This message is automatically generated. ATTACHMENT ID: 12638787
        Hide
        Jason Dere added a comment -

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

        Show
        Jason Dere added a comment - Patch to drop the role at the start of testShowRoleGrant(), before creating the role as part of the test.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development