Ver código fonte

Revert "AMBARI-3234. HDFS service status is shown as green when there is no Active NameNode. (xiwang via yusaku)"

Yusaku Sako 11 anos atrás
pai
commit
ab58f79d2f
1 arquivos alterados com 0 adições e 12 exclusões
  1. 0 12
      ambari-web/app/models/service.js

+ 0 - 12
ambari-web/app/models/service.js

@@ -133,18 +133,6 @@ App.Service = DS.Model.extend({
       }
     }
 
-    if (isGreen && serviceName === 'HDFS' && masterComponents.length == 5) { // enabled HA
-      var activeNN = this.get('activeNameNode');
-      var nameNode = this.get('nameNode');
-
-      if (nameNode && !activeNN) { //hdfs model but no active NN
-        hdfsHealthStatus = 'red';
-      } else if (nameNode && activeNN) {
-        hdfsHealthStatus = 'green';
-      }
-      this.set('healthStatus', hdfsHealthStatus);
-    }
-
     this.set('isStarted', everyStarted);
     this.set('runningHostComponents', runningHCs);
     this.set('unknownHostComponents', unknownHCs);