Jelajahi Sumber

AMBARI-3310. HDFS service check should not be disabled when NN HA is enabled and one NN is down. (onechiporenko)

Oleg Nechiporenko 11 tahun lalu
induk
melakukan
1f7de9e303
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      ambari-web/app/controllers/main/service/item.js

+ 5 - 2
ambari-web/app/controllers/main/service/item.js

@@ -255,9 +255,12 @@ App.MainServiceItemController = Em.Controller.extend({
 
   isStopDisabled: function () {
     if(this.get('isPending')) return true;
-    return !(this.get('content.healthStatus') == 'green');
+    if (!App.HostComponent.find().someProperty('componentName', 'SECONDARY_NAMENODE') && this.get('content.serviceName') == 'HDFS' && this.get('content.hostComponents').filterProperty('componentName', 'NAMENODE').someProperty('workStatus', App.HostComponentStatus.started)) {
+      return false;
+    }
+    return (this.get('content.healthStatus') != 'green');
   }.property('content.healthStatus','isPending'),
 
   isPending:true
 
-})
+});