Repository: crunch Updated Branches: refs/heads/master 484545a58 -> d176778cf
CRUNCH-531: Fix split graph rendering typo. Project: http://git-wip-us.apache.org/repos/asf/crunch/repo Commit: http://git-wip-us.apache.org/repos/asf/crunch/commit/d4da5299 Tree: http://git-wip-us.apache.org/repos/asf/crunch/tree/d4da5299 Diff: http://git-wip-us.apache.org/repos/asf/crunch/diff/d4da5299 Branch: refs/heads/master Commit: d4da529985593ecf84c057938baf706a144e9024 Parents: 484545a Author: Josh Wills <[email protected]> Authored: Thu Jun 4 09:30:42 2015 -0700 Committer: Josh Wills <[email protected]> Committed: Thu Jun 25 08:55:21 2015 +0100 ---------------------------------------------------------------------- .../org/apache/crunch/impl/mr/plan/DotfileUtills.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/crunch/blob/d4da5299/crunch-core/src/main/java/org/apache/crunch/impl/mr/plan/DotfileUtills.java ---------------------------------------------------------------------- diff --git a/crunch-core/src/main/java/org/apache/crunch/impl/mr/plan/DotfileUtills.java b/crunch-core/src/main/java/org/apache/crunch/impl/mr/plan/DotfileUtills.java index 7b401cb..7dea255 100644 --- a/crunch-core/src/main/java/org/apache/crunch/impl/mr/plan/DotfileUtills.java +++ b/crunch-core/src/main/java/org/apache/crunch/impl/mr/plan/DotfileUtills.java @@ -58,7 +58,6 @@ public class DotfileUtills { * Builds a lineage dotfile only if the dotfile-debug mode is enabled. */ void buildLineageDotfile(Map<PCollectionImpl<?>, Set<Target>> outputs) { - if (isDebugDotfilesEnabled(conf)) { try { pcollectionLineageDotfile = new DotfileWriterPCollectionLineage(outputs) @@ -73,7 +72,6 @@ public class DotfileUtills { * Builds the base graph dotfile only if the dotfile-debug mode is enabled. */ void buildBaseGraphDotfile(Map<PCollectionImpl<?>, Set<Target>> outputs, Graph graph) { - if (isDebugDotfilesEnabled(conf)) { try { basePlanGraphDotfile = new DotfileWriterGraph(graph, outputs, null).buildDiagram("Base Graph (" @@ -85,15 +83,13 @@ public class DotfileUtills { } /** - * Builds a splitted graph dotfile only if the dotfile-debug mode is enabled. + * Builds a split graph dotfile only if the dotfile-debug mode is enabled. */ void buildSplitGraphDotfile(Map<PCollectionImpl<?>, Set<Target>> outputs, Graph graph, List<List<Vertex>> components) { - if (isDebugDotfilesEnabled(conf)) { try { - splitGraphPlanDotfile = new DotfileWriterGraph(graph, outputs, null).buildDiagram("Graph With Components (" - + jarClass.getSimpleName() + ")"); - + splitGraphPlanDotfile = new DotfileWriterGraph(graph, outputs, components) + .buildDiagram("Graph With Components (" + jarClass.getSimpleName() + ")"); } catch (Exception ex) { LOG.error("Problem creating debug dotfile:", ex); }
