浏览代码

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

Oleg Nechiporenko 11 年之前
父节点
当前提交
1f7de9e303
共有 1 个文件被更改,包括 5 次插入2 次删除
  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
 
-})
+});