فهرست منبع

AMBARI-3812 [Perf] FE seems to be polling for host status a lot while submitting requests for cluster install. (atkach)

atkach 11 سال پیش
والد
کامیت
01f8e85bd2
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      ambari-web/app/controllers/wizard/step3_controller.js

+ 3 - 3
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('bootHosts.@each.name'),
+  }.observes('bootHosts'),
 
   hostsInCluster: function() {
     return App.Host.find().getEach('hostName');