incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject git commit: AMBARI-3493 HDFS service marked stopped when 1 journal node is taken down. (ababiichuk)
Date Thu, 10 Oct 2013 13:31:36 GMT
Updated Branches:
  refs/heads/trunk a0dd6770e -> 8d72c0b9e


AMBARI-3493 HDFS service marked stopped when 1 journal node is taken down. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 8d72c0b9e5c9bfad4ec7643a9eeafb82b08fec99
Parents: a0dd677
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Thu Oct 10 16:22:36 2013 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Thu Oct 10 16:31:14 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/status_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/8d72c0b9/ambari-web/app/mappers/status_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/status_mapper.js b/ambari-web/app/mappers/status_mapper.js
index 96f8182..c902389 100644
--- a/ambari-web/app/mappers/status_mapper.js
+++ b/ambari-web/app/mappers/status_mapper.js
@@ -102,7 +102,7 @@ App.statusMapper = App.QuickDataMapper.create({
     }
     if (hostComponent.get('isMaster')) {
       if (service.everyStartedOrMaintenance) {
-        service.everyStartedOrMaintenance = (hostComponent.get('componentName') === 'NAMENODE'
&& !App.HostComponent.find().someProperty('componentName', 'SECONDARY_NAMENODE') &&
App.HDFSService.find().filterProperty('activeNameNode.hostName').length > 0)
+        service.everyStartedOrMaintenance = (((hostComponent.get('componentName') === 'NAMENODE'
&& !App.HostComponent.find().someProperty('componentName', 'SECONDARY_NAMENODE'))
|| hostComponent.get('componentName') === 'JOURNALNODE') && App.HDFSService.find().filterProperty('activeNameNode.hostName').length
> 0)
           ? true : service.everyStartedOrMaintenance = ([App.HostComponentStatus.started,
App.HostComponentStatus.maintenance].contains(hostComponent.get('workStatus')));
       } else {
         service.everyStartedOrMaintenance = false;


Mime
View raw message