Browse Source

AMBARI-9800 400-node cluster: Hosts page stuck in loading state. (ababiichuk)

aBabiichuk 10 years ago
parent
commit
212aa9b507
1 changed files with 6 additions and 5 deletions
  1. 6 5
      ambari-web/app/controllers/main/host.js

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

@@ -293,12 +293,13 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
         sender: this,
         data: {},
         success: 'updateStatusCountersSuccessCallback',
-        error: 'updateStatusCountersErrorCallback'
+        error: 'updateStatusCountersErrorCallback',
+        callback: function() {
+          setTimeout(function () {
+            self.updateStatusCounters();
+          }, App.get('hostStatusCountersUpdateInterval'));
+        }
       });
-
-      setTimeout(function () {
-        self.updateStatusCounters();
-      }, App.get('hostStatusCountersUpdateInterval'));
     }
   },