ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1448928 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/models/service.js
Date Fri, 22 Feb 2013 08:12:39 GMT
Author: yusaku
Date: Fri Feb 22 08:12:39 2013
New Revision: 1448928

URL: http://svn.apache.org/r1448928
Log:
AMBARI-1472. Update HBase service/host health status. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/models/service.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1448928&r1=1448927&r2=1448928&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Feb 22 08:12:39 2013
@@ -51,6 +51,8 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1472. Update HBase service/host health status. (yusaku)
+
  AMBARI-1471. Refactor ajax calls. (yusaku)
 
  AMBARI-1461. Optimize query for getting service and host component status back

Modified: incubator/ambari/trunk/ambari-web/app/models/service.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/models/service.js?rev=1448928&r1=1448927&r2=1448928&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/models/service.js (original)
+++ incubator/ambari/trunk/ambari-web/app/models/service.js Fri Feb 22 08:12:39 2013
@@ -37,7 +37,11 @@ App.Service = DS.Model.extend({
 
   healthStatus: function () {
     var components = this.get('hostComponents').filterProperty('isMaster', true);
-    if (components.everyProperty('workStatus', App.HostComponentStatus.started)) {
+    var isGreen = (this.get('serviceName') === 'HBASE' ?
+      components.someProperty('workStatus', App.HostComponentStatus.started) :
+      components.everyProperty('workStatus', App.HostComponentStatus.started)) ;
+
+    if (isGreen) {
       return 'green';
     } else if (components.someProperty('workStatus', App.HostComponentStatus.starting)) {
       return 'green-blinking';



Mime
View raw message