hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r748084 - in /hadoop/core/trunk: CHANGES.txt src/mapred/org/apache/hadoop/mapred/JobTracker.java
Date Thu, 26 Feb 2009 11:11:48 GMT
Author: ddas
Date: Thu Feb 26 11:11:48 2009
New Revision: 748084

URL: http://svn.apache.org/viewvc?rev=748084&view=rev
Log:
HADOOP-5306. Fixes a problem to do with logging/parsing the http port of a lost tracker. Affects
JobTracker restart. Contributed by Amar Kamat.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobTracker.java

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=748084&r1=748083&r2=748084&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Feb 26 11:11:48 2009
@@ -899,6 +899,9 @@
     HADOOP-5272. Fixes a problem to do with detecting whether an attempt is the first
     attempt of a Task. This affects JobTracker restart. (Amar Kamat via ddas)
 
+    HADOOP-5306. Fixes a problem to do with logging/parsing the http port of a 
+    lost tracker. Affects JobTracker restart. (Amar Kamat via ddas)
+
 Release 0.19.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobTracker.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobTracker.java?rev=748084&r1=748083&r2=748084&view=diff
==============================================================================
--- hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobTracker.java (original)
+++ hadoop/core/trunk/src/mapred/org/apache/hadoop/mapred/JobTracker.java Thu Feb 26 11:11:48
2009
@@ -936,7 +936,12 @@
       String trackerName = attempt.get(Keys.TRACKER_NAME);
       String trackerHostName = 
         JobInProgress.convertTrackerNameToHostName(trackerName);
-      int port = attempt.getInt(Keys.HTTP_PORT);
+      // recover the port information.
+      int port = 0; // default to 0
+      String hport = attempt.get(Keys.HTTP_PORT);
+      if (hport != null && hport.length() > 0) {
+        port = attempt.getInt(Keys.HTTP_PORT);
+      }
       
       long attemptStartTime = attempt.getLong(Keys.START_TIME);
 



Mime
View raw message