From e79a47670bf66973a2089c20e5dbe32d266b68d7 Mon Sep 17 00:00:00 2001 From: Robert Kanter Date: Wed, 13 Apr 2016 17:45:18 -0700 Subject: [PATCH] YARN-4541. Change log message in LocalizedResource#handle() to DEBUG (rchiang via rkanter) (cherry picked from commit 0d9194df00fd68bfb7a8ba504b0cddd7d7c69b8a) --- .../containermanager/localizer/LocalizedResource.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 04d95f1212c..464293a3f3b 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 { 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();