ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] ambari git commit: AMBARI-9923. RM exception in ambari-server.log when performing RU (aonishuk)
Date Wed, 04 Mar 2015 17:56:06 GMT
AMBARI-9923. RM exception in ambari-server.log when performing RU (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/114c9adc
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/114c9adc
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/114c9adc

Branch: refs/heads/branch-2.0.0
Commit: 114c9adca0e13de8f0b29b342c88257d713a088c
Parents: 551c055
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Wed Mar 4 19:55:57 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Wed Mar 4 19:55:57 2015 +0200

----------------------------------------------------------------------
 .../org/apache/ambari/server/stack/MasterHostResolver.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/114c9adc/ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java
b/ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java
index 5800647..ef75d38 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/stack/MasterHostResolver.java
@@ -346,7 +346,11 @@ public class MasterHostResolver {
 
       return jmxBeans.get("beans").get(0).get(attributeName);
     } catch (Exception e) {
-      LOG.info("Could not load JMX from {}/{} from {}", beanName, attributeName, hostname,
e);
+      if (LOG.isDebugEnabled()) {
+        LOG.info("Could not load JMX from {}/{} from {}", beanName, attributeName, hostname,
e);
+      } else {
+        LOG.info("Could not load JMX from {}/{} from {}", beanName, attributeName, hostname);
+      }
     }
 
     return null;


Mime
View raw message