hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7357) hadoop.io.compress.TestCodec#main() should exit with non-zero exit code if test failed
Date Fri, 03 Jun 2011 18:15:47 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043930#comment-13043930
] 

Todd Lipcon commented on HADOOP-7357:
-------------------------------------

Why not get rid of the try/catch completely and just let the exception propagate out of main?
That would produce the correct error code as well and remove 5 lines of code.

> hadoop.io.compress.TestCodec#main() should exit with non-zero exit code if test failed
> --------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7357
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7357
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>            Reporter: Philip Zeyliger
>            Assignee: Philip Zeyliger
>            Priority: Trivial
>         Attachments: HADOOP-7357.patch.txt
>
>
> It's convenient to run something like
> {noformat}
> HADOOP_CLASSPATH=hadoop-test-0.20.2.jar bin/hadoop org.apache.hadoop.io.compress.TestCodec
 -count 3 -codec fo
> {noformat}
> but the error code it returns isn't interesting.
> 1-line patch attached fixes that.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message