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

TestNegativeCliDriver failure message if cmd succeeds is misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.12.0
    • Testing Infrastructure
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: