ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject git commit: AMBARI-6511. Flume agent on 1 out of 3 hosts not showing in table (alexantonenko)
Date Wed, 16 Jul 2014 17:05:57 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d90d34883 -> 87db0903c


AMBARI-6511. Flume agent on 1 out of 3 hosts not showing in table (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 87db0903ccdd3828eff4ab4d3ddd92804ecf4987
Parents: d90d348
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Wed Jul 16 20:03:25 2014 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Jul 16 20:03:41 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/service_metrics_mapper.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/87db0903/ambari-web/app/mappers/service_metrics_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_metrics_mapper.js b/ambari-web/app/mappers/service_metrics_mapper.js
index 83aa304..ee2a66a 100644
--- a/ambari-web/app/mappers/service_metrics_mapper.js
+++ b/ambari-web/app/mappers/service_metrics_mapper.js
@@ -604,7 +604,8 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
     var flumeConfig = this.flumeConfig;
     finalConfig = jQuery.extend(finalConfig, flumeConfig);
     var finalJson = self.parseIt(item, finalConfig);
-    var flumeHandlers = item.components[0].host_components;
+    var flumeHandlers = item.components.findProperty('ServiceComponentInfo.component_name',
"FLUME_HANDLER");
+    flumeHandlers = flumeHandlers ? flumeHandlers.host_components : [];
     finalJson.agents = [];
     finalJson.agentJsons = [];
     flumeHandlers.forEach(function(flumeHandler){


Mime
View raw message