You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2013/09/23 17:28:29 UTC

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

Updated Branches:
  refs/heads/branch-1.4.1 d7c38bdb7 -> c79279613


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


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/c7927961
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/c7927961
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/c7927961

Branch: refs/heads/branch-1.4.1
Commit: c79279613ca3746e385d68e65b33e5fc4d453e32
Parents: d7c38bd
Author: Oleg Nechiporenko <cv...@yahoo.com>
Authored: Mon Sep 23 18:26:02 2013 +0300
Committer: Oleg Nechiporenko <cv...@yahoo.com>
Committed: Mon Sep 23 18:28:18 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/main/service/item.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/c7927961/ambari-web/app/controllers/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/item.js b/ambari-web/app/controllers/main/service/item.js
index 38c7543..32851c9 100644
--- a/ambari-web/app/controllers/main/service/item.js
+++ b/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
 
-})
+});