hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-4418) TestNegativeCliDriver failure message if cmd succeeds is misleading
Date Wed, 24 Apr 2013 21:35:15 GMT

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

Thejas M Nair updated HIVE-4418:
--------------------------------

    Attachment: HIVE-4418.1.patch

With the patch, now the error message is -

{code}
junit.framework.AssertionFailedError: Client Execution was expected to fail, but succeeded
with error code 0 
See build/ql/tmp/hive.log, or try "ant test ... -Dtest.silent=false" to get more logs.
        at junit.framework.Assert.fail(Assert.java:47)
        at org.apache.hadoop.hive.cli.TestNegativeCliDriver.runTest(TestNegativeCliDriver.java:121)
        at org.apache.hadoop.hive.cli.TestNegativeCliDriver.testNegativeCliDriver_desc_tab(TestNegativeCliDriver.java:102)
{code}
                
> TestNegativeCliDriver failure message if cmd succeeds is misleading
> -------------------------------------------------------------------
>
>                 Key: HIVE-4418
>                 URL: https://issues.apache.org/jira/browse/HIVE-4418
>             Project: Hive
>          Issue Type: Bug
>          Components: Testing Infrastructure
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-4418.1.patch
>
>
> 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 -
> {code}
>     [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)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message