ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-19755. Test Fix. Perf: start/stop all actions works much slower after few days of testing.(vbrodetskyi)
Date Tue, 31 Jan 2017 23:38:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 3bb3fdff7 -> 8ef727841


AMBARI-19755. Test Fix. Perf: start/stop all actions works much slower after few days of testing.(vbrodetskyi)


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

Branch: refs/heads/branch-2.5
Commit: 8ef727841c94fdc4a1e5b4a75e32f01fa9141527
Parents: 3bb3fdf
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Wed Feb 1 01:37:18 2017 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Wed Feb 1 01:38:11 2017 +0200

----------------------------------------------------------------------
 .../org/apache/ambari/server/state/cluster/ClusterImpl.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8ef72784/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
b/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
index 5da8012..a4c4b36 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
@@ -2894,13 +2894,13 @@ public class ClusterImpl implements Cluster {
 
     Service service = clusterServices.get(serviceName);
     Map<String, ServiceComponent> components = service.getServiceComponents();
-    Map<String, ServiceComponentHost> serviceComponentHosts = components.get(componentName).getServiceComponentHosts();
 
-    if (!components.containsKey(componentName) || serviceComponentHosts.size() == 0) {
+    if (!components.containsKey(componentName) ||
+            components.get(componentName).getServiceComponentHosts().size() == 0) {
       return Collections.emptySet();
     }
 
-    return serviceComponentHosts.keySet();
+    return components.get(componentName).getServiceComponentHosts().keySet();
   }
 
   @Override


Mime
View raw message