Skip to content

Commit

Permalink
Modify Set to List as updated in other PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <amkhar@amazon.com>
  • Loading branch information
Aman Khare committed Feb 27, 2024
1 parent 1ca219c commit b230d16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void allocateUnassigned(
* @param shardRoutings the shards to allocate
* @param allocation the allocation state container object
*/
public void allocateUnassignedBatch(Set<ShardRouting> shardRoutings, RoutingAllocation allocation) {
public void allocateUnassignedBatch(List<ShardRouting> shardRoutings, RoutingAllocation allocation) {
// make Allocation Decisions for all shards
HashMap<ShardRouting, AllocateUnassignedDecision> decisionMap = makeAllocationDecision(shardRoutings, allocation, logger);
assert shardRoutings.size() == decisionMap.size() : "make allocation decision didn't return allocation decision for "
Expand Down Expand Up @@ -164,7 +164,7 @@ public abstract AllocateUnassignedDecision makeAllocationDecision(
);

public HashMap<ShardRouting, AllocateUnassignedDecision> makeAllocationDecision(
Set<ShardRouting> unassignedShardBatch,
List<ShardRouting> unassignedShardBatch,
RoutingAllocation allocation,
Logger logger
) {
Expand Down

0 comments on commit b230d16

Please sign in to comment.