Updated Branches: refs/heads/trunk 7948bc4b4 -> 01f8e85bd
AMBARI-3812 [Perf] FE seems to be polling for host status a lot while submitting requests for cluster install. (atkach) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/01f8e85b Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/01f8e85b Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/01f8e85b Branch: refs/heads/trunk Commit: 01f8e85bd23cf6b85cb05c79eac6c11861e3aebc Parents: 7948bc4 Author: atkach <andrey91...@gmail.com> Authored: Tue Nov 19 18:45:28 2013 +0200 Committer: atkach <andrey91...@gmail.com> Committed: Tue Nov 19 18:45:28 2013 +0200 ---------------------------------------------------------------------- ambari-web/app/controllers/wizard/step3_controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/01f8e85b/ambari-web/app/controllers/wizard/step3_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/wizard/step3_controller.js b/ambari-web/app/controllers/wizard/step3_controller.js index 0375cc0..266af03 100644 --- a/ambari-web/app/controllers/wizard/step3_controller.js +++ b/ambari-web/app/controllers/wizard/step3_controller.js @@ -125,8 +125,8 @@ App.WizardStep3Controller = Em.Controller.extend({ clearStep: function () { this.set('stopBootstrap', false); - this.hosts.clear(); - this.bootHosts.clear(); + this.set('hosts', []); + this.get('bootHosts').clear(); this.get('wizardController').setDBProperty('bootStatus', false); this.set('isSubmitDisabled', true); this.set('isRetryDisabled', true); @@ -474,7 +474,7 @@ App.WizardStep3Controller = Em.Controller.extend({ sender: this, success: 'getAllRegisteredHostsCallback' }); - }.observes('boothos...@each.name'), + }.observes('bootHosts'), hostsInCluster: function() { return App.Host.find().getEach('hostName');