Repository: ambari Updated Branches: refs/heads/trunk 6eb5bd631 -> 95088d579
AMBARI-9040 Chrome being flooded with errors, unresponsive page. (ababiichuk) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/95088d57 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/95088d57 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/95088d57 Branch: refs/heads/trunk Commit: 95088d579971c30d6be7af258e3aec78016c63dc Parents: 6eb5bd6 Author: aBabiichuk <[email protected]> Authored: Thu Jan 8 12:41:15 2015 +0200 Committer: aBabiichuk <[email protected]> Committed: Thu Jan 8 12:41:15 2015 +0200 ---------------------------------------------------------------------- ambari-web/app/views/main/service/services/hdfs.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/95088d57/ambari-web/app/views/main/service/services/hdfs.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/main/service/services/hdfs.js b/ambari-web/app/views/main/service/services/hdfs.js index c1aeb85..4b544f4 100644 --- a/ambari-web/app/views/main/service/services/hdfs.js +++ b/ambari-web/app/views/main/service/services/hdfs.js @@ -54,7 +54,10 @@ App.MainDashboardServiceHdfsView = App.MainDashboardServiceView.extend({ var nnZkfc = []; namenodes.forEach( function(namenode) { nnZkfc.push(namenode); - nnZkfc.push(zkfcs.findProperty('host.publicHostName', namenode.get('host.publicHostName')).set('isZkfc', true)); + var zkfc = zkfcs.findProperty('host.publicHostName', namenode.get('host.publicHostName')); + if (zkfc) { + nnZkfc.push(zkfc.set('isZkfc', true)); + } }); return nnZkfc; } else { @@ -62,7 +65,7 @@ App.MainDashboardServiceHdfsView = App.MainDashboardServiceView.extend({ return comp.get('isMaster') && comp.get('componentName') !== 'JOURNALNODE'; }); } - }.property('parentView.service.hostComponents') + }.property('parentView.service.hostComponents.length') }), dataNodesLive: function () {
