Gabriel Reid created CRUNCH-443:
-----------------------------------

             Summary: Pipeline#run returns null in some error situations
                 Key: CRUNCH-443
                 URL: https://issues.apache.org/jira/browse/CRUNCH-443
             Project: Crunch
          Issue Type: Bug
            Reporter: Gabriel Reid
            Assignee: Gabriel Reid


In some error situations, when a pipeline fails to run, the returned 
PipelineResult will be null.

This means that running a pipeline and checking the result requires the 
following logic:

{code}
PipelineResult result = pipeline.run();
if (result == null || !result.succeeded()) {
    System.out.println("Pipeline failed");
}
{code}

The PipelineResult returned by Pipeline#run should never be null. Instead, it 
should contain enough information to see that the pipeline run failed.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to