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

TestNegativeCliDriver failure message if cmd succeeds is misleading

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.12.0
    • Component/s: Testing Infrastructure
    • Labels:
      None

      Description

      If the .q test ends up succeeding (exit code == 0), then the test failure message is misleading.

      From the error it seems as if the command actually failed -

          [junit] junit.framework.AssertionFailedError: Client Execution failed with error code = 0
          [junit] See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to get more logs.
          [junit]     at junit.framework.Assert.fail(Assert.java:47)
          [junit]     at org.apache.hadoop.hive.cli.TestNegativeCliDriver.runTest(TestNegativeCliDriver.java:121)
          [junit]     at org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_desc_tab(TestNegativeCliDriver.java:102)
      
      

        Attachments

        1. HIVE-4418.1.patch
          0.6 kB
          Thejas Nair

          Activity

            People

            • Assignee:
              thejas Thejas Nair
              Reporter:
              thejas Thejas Nair
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: