Explorar el Código

AMBARI-2823: Datanode and RegionServer live count in service summary page is not updated dynamically. (jaimin)

Jaimin Jetly hace 12 años
padre
commit
1d871813ee

+ 1 - 1
ambari-web/app/templates/main/dashboard/service/hbase.hbs

@@ -49,7 +49,7 @@
       <tr>
         <td>{{t dashboard.services.hbase.regionServers}}</td>
          <td>
-            <span class="green-live">{{view.liveRegionServes.length}}/{{view.service.regionServers.length}} </span> {{t services.service.summary.RegionServersLIVE}}
+            <span class="green-live">{{view.liveRegionServers.length}}/{{view.service.regionServers.length}} </span> {{t services.service.summary.RegionServersLIVE}}
             <div class="summary-view-host">
               <a href="#" {{action filterHosts view.regionServerComponent}}>{{view.regionServesText}}</a>
             </div>

+ 2 - 2
ambari-web/app/views/main/dashboard/service/hbase.js

@@ -39,9 +39,9 @@ App.MainDashboardServiceHbaseView = App.MainDashboardServiceView.extend({
   }.property('masters'),
 
 
-  liveRegionServes: function () {
+  liveRegionServers: function () {
     return App.HostComponent.find().filterProperty('componentName', 'HBASE_REGIONSERVER').filterProperty("workStatus","STARTED");
-  }.property(),
+  }.property('service.hostComponents.@each'),
 
   regionServesText: function () {
     if(this.get('service.regionServers').get("length") > 1){

+ 2 - 2
ambari-web/app/views/main/dashboard/service/hdfs.js

@@ -39,10 +39,10 @@ App.MainDashboardServiceHdfsView = App.MainDashboardServiceView.extend({
 
   dataNodesLive: function(){
     return App.HostComponent.find().filterProperty('componentName', 'DATANODE').filterProperty("workStatus","STARTED");
-  }.property('service'),
+  }.property('service.hostComponents.@each'),
   dataNodesDead: function(){
     return App.HostComponent.find().filterProperty('componentName', 'DATANODE').filterProperty("workStatus","INSTALLED");
-  }.property('service'),
+  }.property('service.hostComponents.@each'),
 
   dataNodeHostText: function () {
     if(this.get("service.dataNodes") > 1){