From b685486fbbb48170037018906840498ddb39b7a8 Mon Sep 17 00:00:00 2001 From: Ravi Gummadi Date: Thu, 21 Jun 2012 05:44:20 +0000 Subject: [PATCH] MAPREDUCE-4356. [Rumen] Provide access to the method ParsedTask.obtainTaskAttempts(). (ravigummadi) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1352415 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../main/java/org/apache/hadoop/tools/rumen/ParsedTask.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 48c08b3efb..df79e09486 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -60,6 +60,9 @@ Trunk (unreleased changes) BUG FIXES + MAPREDUCE-4356. [Rumen] Provide access to the method + ParsedTask.obtainTaskAttempts(). (ravigummadi) + MAPREDUCE-4100. [Gridmix] Bug fixed in compression emulation feature for map only jobs. (amarrk) diff --git a/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java b/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java index 90eebd66fb..11cf12d042 100644 --- a/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java +++ b/hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/ParsedTask.java @@ -91,7 +91,10 @@ public String obtainFailedDueToAttemptId() { return failedDueToAttempt; } - List obtainTaskAttempts() { + /** + * @return the list of attempts of this task. + */ + public List obtainTaskAttempts() { List attempts = getAttempts(); return convertTaskAttempts(attempts); }