JaySenSharma created AMBARI-23414: ------------------------------------- Summary: Refreshing Ambari Dashboard or HDFS Dashboard shows console error Cannot read property 'hosts' of undefined Key: AMBARI-23414 URL: https://issues.apache.org/jira/browse/AMBARI-23414 Project: Ambari Issue Type: Bug Components: ambari-server, ambari-web Affects Versions: trunk, 2.7.0 Reporter: JaySenSharma Assignee: JaySenSharma
In a NameNode HA enabled cluster, When we refresh the Ambari UI page then on next time refresh we see the following error on the Browser console : {code} Uncaught TypeError: Cannot read property 'hosts' of undefined at app.js:213145 at Array.filter (<anonymous>) at app.js:213144 at Array.map (<anonymous>) at Class.setMultipleGroupLinks (app.js:213143) at Class.setQuickLinksSuccessCallback (app.js:212862) at Class.opt.success (app.js:180150) at fire (vendor.js:1141) at Object.fireWith [as resolveWith] (vendor.js:1252) at done (vendor.js:8178) {code} This happens because the expression "this.get('shouldSetGroupedLinks')" returns "false" first time but next time it returns "true" but the possibility is that the expression "this.get('masterGroups.length')". is still returns "false". (means the "masterGroups" array is still having no or one element). -- This message was sent by Atlassian JIRA (v7.6.3#76005)