You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Hemanth Yamijala (JIRA)" <ji...@apache.org> on 2009/09/07 09:28:57 UTC

[jira] Updated: (MAPREDUCE-924) TestPipes must not directly invoke 'main' of pipes as an exit from main could cause the testcase to crash.

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

Hemanth Yamijala updated MAPREDUCE-924:
---------------------------------------

    Description: 
TestPipes invokes the main method of the program running pipes. In MAPREDUCE-421, a change was made to the Pipes command runner to invoke System.exit after completion. This itself is a valid change because the pipes command runner is in itself a user facing program. But when combined with a testcase, it causes the testcase to crash rather than providing feedback on whether the test ran correctly or not.

The testcase should be modified to use Tool instead of running main directly.

  was:
TestPipes crashes on trunk due to MAPREDUCE-421.
Testcase should be modified to use Tool insteadof running main directly.

        Summary: TestPipes must not directly invoke 'main' of pipes as an exit from main could cause the testcase to crash.  (was: TestPipes crashes on trunk)

> TestPipes must not directly invoke 'main' of pipes as an exit from main could cause the testcase to crash.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-924
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-924
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: pipes
>    Affects Versions: 0.20.1
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 0.20.1
>
>         Attachments: patch-924-0.20.txt, patch-924.txt
>
>
> TestPipes invokes the main method of the program running pipes. In MAPREDUCE-421, a change was made to the Pipes command runner to invoke System.exit after completion. This itself is a valid change because the pipes command runner is in itself a user facing program. But when combined with a testcase, it causes the testcase to crash rather than providing feedback on whether the test ran correctly or not.
> The testcase should be modified to use Tool instead of running main directly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.