ソースを参照

commit beba981b072ff739ffd858a48e9d2fda65450024
Author: Hemanth Yamijala <yhemanth@apache.org>
Date: Thu Oct 15 16:05:41 2009 +0530

MAPREDUCE:732 from http://issues.apache.org/jira/secure/attachment/12413001/MAPRED-732-ydist.patch

+++ b/YAHOO-CHANGES.txt
+68. MAPREDUCE-732. Removed spurious log statements in the node
+ blacklisting logic. (Sreekanth Ramakrishnan via yhemanth)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077020 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年 前
コミット
8f2ef8d003
1 ファイル変更8 行追加2 行削除
  1. 8 2
      src/mapred/org/apache/hadoop/mapred/JobTracker.java

+ 8 - 2
src/mapred/org/apache/hadoop/mapred/JobTracker.java

@@ -722,8 +722,14 @@ public class JobTracker implements MRConstants, InterTrackerProtocol,
       FaultInfo fi = getFaultInfo(hostName, true);
       boolean blackListed = fi.isBlacklisted();
       if(blackListed) {
-        LOG.info("Adding blacklisted reason for tracker : " + hostName 
-            + " Reason for blacklisting is : " + rfb);
+        if (LOG.isDebugEnabled()) {
+          LOG.debug("Adding blacklisted reason for tracker : " + hostName 
+              + " Reason for blacklisting is : " + rfb);
+        }
+        if (!fi.getReasonforblacklisting().contains(rfb)) {
+          LOG.info("Adding blacklisted reason for tracker : " + hostName
+              + " Reason for blacklisting is : " + rfb);
+        }
         fi.addBlackListedReason(rfb, reason);
       } else {
         LOG.info("Blacklisting tracker : " + hostName