You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Alejandro Abdelnur (Updated) (JIRA)" <ji...@apache.org> on 2012/03/02 23:38:21 UTC

[jira] [Updated] (OOZIE-81) GH-40: coordinator rerun doesn't consider empty output-event

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

Alejandro Abdelnur updated OOZIE-81:
------------------------------------

    Fix Version/s: pre-Apache
    
> GH-40: coordinator rerun doesn't consider empty output-event
> ------------------------------------------------------------
>
>                 Key: OOZIE-81
>                 URL: https://issues.apache.org/jira/browse/OOZIE-81
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Hadoop QA
>             Fix For: pre-Apache
>
>
> ### User experience:
> If the user selects cleanup but there is no "output-event" in the cooridnator xml, the code will throw NullPointerException (NPE):
>     private void cleanupOutputEvents(Element eAction, String user, String group) {
>             Element outputList = eAction.getChild("output-events", eAction.getNamespace());
>             for (Element data : (List) outputList.getChildren("data-out", eAction.getNamespace())) {
> Line 3 will throw NPE.
> Solution:
>     if (outputList != null) {
>         for (Element data : (List) outputList.getChildren("data-out", eAction.getNamespace())) {
>          ......
>     }
> ### Additional activities:
> 1. Add an unit test
> 2. QA needs to add one test case with this scenario.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira