You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Gabriel Reid (JIRA)" <ji...@apache.org> on 2014/07/16 07:37:05 UTC

[jira] [Created] (CRUNCH-443) Pipeline#run returns null in some error situations

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)