You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/07 20:14:53 UTC

svn commit: r1490764 - /incubator/ambari/trunk/ambari-web/app/models/service.js

Author: yusaku
Date: Fri Jun  7 18:14:52 2013
New Revision: 1490764

URL: http://svn.apache.org/r1490764
Log:
AMBARI-2311. Service having master components on host with heartbeat lost doesn't indicate correct status. (Oleg Nechiporenko via yusaku)

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

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=1490764&r1=1490763&r2=1490764&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/models/service.js (original)
+++ incubator/ambari/trunk/ambari-web/app/models/service.js Fri Jun  7 18:14:52 2013
@@ -58,12 +58,12 @@ App.Service = DS.Model.extend({
 
     if (isGreen) {
       this.set('healthStatus', 'green');
+    } else if (components.someProperty('workStatus', App.HostComponentStatus.unknown)) {
+      this.set('healthStatus', 'yellow');
     } else if (components.someProperty('workStatus', App.HostComponentStatus.starting)) {
       this.set('healthStatus', 'green-blinking');
     } else if (components.someProperty('workStatus', App.HostComponentStatus.stopped)) {
       this.set('healthStatus', 'red');
-    } else if (components.someProperty('workStatus', App.HostComponentStatus.unknown)) {
-      this.set('healthStatus', 'yellow');
     } else {
       this.set('healthStatus', 'red-blinking');
     }