Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-217

Crunch PipelineResult objects do not capture failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Core
    • None

    Description

      We use Crunch within Azkaban (a scheduling a and workflow tool, similar to Oozie). We need to be able to run a crunch pipeline from within another Java program, then test for success using code like this:

          PipelineResult mainResult = mainPipeline.run();
          if (!mainResult.succeeded())
          {
              throw new Exception("Pipeline failed: " + mainPipeline.getName() + "\n");
          }
          return 0;
      

      Currently, PipelineResult objects don't let you do this; the succeeded() method will always return true.

      I have enclosed a patch that addresses this issue for in-memory and map-reduce pipelines.

      Attachments

        1. CRUNCH-217.patch
          6 kB
          Joseph Adler

        Activity

          People

            jwills Josh Wills
            jadler Joseph Adler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: