Skip to content

Commit ad60cb5

Browse files
committed
cleanup Cluster
1 parent 6022d24 commit ad60cb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jvm/backtype/storm/scheduler/Cluster.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public Map<ExecutorDetails, String> getNeedsSchedulingExecutorToComponents(Topol
103103
* @param topology
104104
* @return
105105
*/
106-
public Map<String, List<ExecutorDetails>> getNeedsSchedulingComponentToTasks(TopologyDetails topology) {
106+
public Map<String, List<ExecutorDetails>> getNeedsSchedulingComponentToExecutors(TopologyDetails topology) {
107107
Map<ExecutorDetails, String> executorToComponents = this.getNeedsSchedulingExecutorToComponents(topology);
108108
Map<String, List<ExecutorDetails>> componentToExecutors = new HashMap<String, List<ExecutorDetails>>();
109109
for (ExecutorDetails executor : executorToComponents.keySet()) {
@@ -185,8 +185,8 @@ public List<ExecutorDetails> getUnassignedExecutors(TopologyDetails topology) {
185185
SchedulerAssignment assignment = this.getAssignmentById(topology.getId());
186186

187187
if (assignment != null) {
188-
Set<ExecutorDetails> assignedTasks = assignment.getExecutors();
189-
allExecutors.removeAll(assignedTasks);
188+
Set<ExecutorDetails> assignedExecutors = assignment.getExecutors();
189+
allExecutors.removeAll(assignedExecutors);
190190
}
191191

192192
List<ExecutorDetails> ret = new ArrayList<ExecutorDetails>(allExecutors.size());

0 commit comments

Comments
 (0)