hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aengin...@apache.org
Subject [19/21] hadoop git commit: YARN-4541. Change log message in LocalizedResource#handle() to DEBUG (rchiang via rkanter)
Date Thu, 14 Apr 2016 06:18:37 GMT
YARN-4541. Change log message in LocalizedResource#handle() to DEBUG (rchiang via rkanter)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0d9194df
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0d9194df
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0d9194df

Branch: refs/heads/HDFS-1312
Commit: 0d9194df00fd68bfb7a8ba504b0cddd7d7c69b8a
Parents: 5566177
Author: Robert Kanter <rkanter@apache.org>
Authored: Wed Apr 13 17:45:18 2016 -0700
Committer: Robert Kanter <rkanter@apache.org>
Committed: Wed Apr 13 17:45:18 2016 -0700

----------------------------------------------------------------------
 .../containermanager/localizer/LocalizedResource.java        | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0d9194df/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
index 04d95f1..464293a 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/LocalizedResource.java
@@ -200,9 +200,11 @@ public class LocalizedResource implements EventHandler<ResourceEvent>
{
         LOG.warn("Can't handle this event at current state", e);
       }
       if (oldState != newState) {
-        LOG.info("Resource " + resourcePath + (localPath != null ? 
-          "(->" + localPath + ")": "") + " transitioned from " + oldState
-            + " to " + newState);
+        if (LOG.isDebugEnabled()) {
+          LOG.debug("Resource " + resourcePath + (localPath != null ?
+              "(->" + localPath + ")": "") + " transitioned from " + oldState
+              + " to " + newState);
+        }
       }
     } finally {
       this.writeLock.unlock();


Mime
View raw message