crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Reid (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CRUNCH-443) Pipeline#run returns null in some error situations
Date Wed, 16 Jul 2014 05:37:05 GMT
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)

Mime
View raw message