diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 059d2b9ab92..40574bafae4 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -410,6 +410,8 @@ Release 0.23.1 - Unreleased MAPREDUCE-3651. TestQueueManagerRefresh fails. (Thomas Graves via mahadev) + MAPREDUCE-3645. TestJobHistory fails. (Thomas Graves via mahadev) + Release 0.23.0 - 2011-11-01 INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestJobHistory.java b/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestJobHistory.java index 9e549e8c4c8..6efe0b6f5e7 100644 --- a/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestJobHistory.java +++ b/hadoop-mapreduce-project/src/test/mapred/org/apache/hadoop/mapred/TestJobHistory.java @@ -57,6 +57,7 @@ import org.apache.hadoop.mapreduce.jobhistory.JobSubmittedEvent; import org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser.JobInfo; import org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser.TaskAttemptInfo; import org.apache.hadoop.mapreduce.jobhistory.JobHistoryParser.TaskInfo; +import org.apache.hadoop.net.Node; import org.apache.hadoop.security.UserGroupInformation; import org.apache.hadoop.security.authorize.AccessControlList; @@ -520,12 +521,13 @@ public class TestJobHistory extends TestCase { attempt.getHttpPort()); if (attempt.getTaskStatus().equals("SUCCEEDED")) { - String ttHostname = jt.getNode(ttStatus.getHost()).toString(); + Node node = jt.getNode(ttStatus.getHost()); + String ttHostname = node.getName(); // check if hostname is valid - assertTrue("Host name of task attempt " + attemptId + + assertTrue("Host name : " + attempt.getHostname() + " of task attempt " + attemptId + " obtained from" + - " history file did not match the expected value", + " history file did not match the expected value " + ttHostname, ttHostname.equals(attempt.getHostname())); } }