AMBARI-3219. NameNode HA Wizard: refreshing does not reload the page and the user is stuck. (yusaku)
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/becdc592 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/becdc592 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/becdc592 Branch: refs/heads/trunk Commit: becdc592448f0935a445b0776b66990191caef4b Parents: 2df4a6e Author: Yusaku Sako <[email protected]> Authored: Thu Sep 12 17:57:15 2013 -0700 Committer: Yusaku Sako <[email protected]> Committed: Thu Sep 12 18:10:11 2013 -0700 ---------------------------------------------------------------------- ambari-web/app/mappers/service_mapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/becdc592/ambari-web/app/mappers/service_mapper.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/mappers/service_mapper.js b/ambari-web/app/mappers/service_mapper.js index 7982731..ad6f1ed 100644 --- a/ambari-web/app/mappers/service_mapper.js +++ b/ambari-web/app/mappers/service_mapper.js @@ -340,10 +340,10 @@ App.servicesMapper = App.QuickDataMapper.create({ if ( component.host_components.length == 2) { var haState1; var haState2; - if (component.host_components[1].metrics.dfs) { + if (component.host_components[1].metrics && component.host_components[1].metrics.dfs) { haState2 = component.host_components[1].metrics.dfs.FSNamesystem.HAState; } - if (component.host_components[0].metrics.dfs) { + if (component.host_components[0].metrics && component.host_components[0].metrics.dfs) { haState1 = component.host_components[0].metrics.dfs.FSNamesystem.HAState; } var active_name_node = [];
