Browse Source

AMBARI-7217. Ambari does not update ha.zookeeper.quorum property in core-site.xml file even if there are more than 3 ZooKeeper servers configured via Ambari.. (onechiporenko)

Oleg Nechiporenko 10 năm trước cách đây
mục cha
commit
daae69ebac
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      ambari-web/app/controllers/main/host/details.js

+ 5 - 2
ambari-web/app/controllers/main/host/details.js

@@ -564,7 +564,11 @@ App.MainHostDetailsController = Em.Controller.extend({
   checkZkConfigs: function () {
     var bg = App.router.get('backgroundOperationsController.services').findProperty('id', this.get('zkRequestId'));
     if (bg && !bg.get('isRunning')) {
-      this.loadConfigs();
+      var self = this;
+      this.removeObserver('App.router.backgroundOperationsController.serviceTimestamp', this, this.checkZkConfigs);
+      setTimeout(function () {
+        self.loadConfigs();
+      }, App.get('componentsUpdateInterval'));
     }
   },
 
@@ -573,7 +577,6 @@ App.MainHostDetailsController = Em.Controller.extend({
    * @method loadConfigs
    */
   loadConfigs: function () {
-    this.removeObserver('App.router.backgroundOperationsController.serviceTimestamp', this, this.checkZkConfigs);
     App.ajax.send({
       name: 'config.tags',
       sender: this,