Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGaox committed Oct 27, 2023
1 parent e25bf09 commit 32a8e09
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public ObjectNode getStoppableInstancesInSingleZone(List<String> instances,

List<String> zoneBasedInstance =
getZoneBasedInstances(instances, _clusterTopology.toZoneMapping());
getStoppableInstances(zoneBasedInstance, toBeStoppedInstancesSet, stoppableInstances,
populateStoppableInstances(zoneBasedInstance, toBeStoppedInstancesSet, stoppableInstances,
failedStoppableInstances);
processNonexistentInstances(instances, failedStoppableInstances);

Expand Down Expand Up @@ -121,14 +121,14 @@ public ObjectNode getStoppableInstancesCrossZones(List<String> instances,
if (instanceSet.isEmpty()) {
continue;
}
getStoppableInstances(new ArrayList<>(instanceSet), toBeStoppedInstancesSet, stoppableInstances,
populateStoppableInstances(new ArrayList<>(instanceSet), toBeStoppedInstancesSet, stoppableInstances,
failedStoppableInstances);
}
processNonexistentInstances(instances, failedStoppableInstances);
return result;
}

private void getStoppableInstances(List<String> instances, Set<String> toBeStoppedInstances,
private void populateStoppableInstances(List<String> instances, Set<String> toBeStoppedInstances,
ArrayNode stoppableInstances, ObjectNode failedStoppableInstances) throws IOException {
Map<String, StoppableCheck> instancesStoppableChecks =
_maintenanceService.batchGetInstancesStoppableChecks(_clusterId, instances,
Expand Down

0 comments on commit 32a8e09

Please sign in to comment.