Skip to content

Commit

Permalink
fix duplicate nodes if node has both ml and data roles
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
  • Loading branch information
ylwu-amzn committed Mar 21, 2023
1 parent 93d7d9a commit e9d8054
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public String[] filterEligibleNodes(String[] nodeIds) {
return nodeIds;
}
DiscoveryNode[] nodes = getNodes(nodeIds);
final List<String> eligibleNodes = new ArrayList<>();
final Set<String> eligibleNodes = new HashSet<>();
for (DiscoveryNode node : nodes) {
if (excludedNodeNames != null && excludedNodeNames.contains(node.getName())) {
continue;
Expand Down

0 comments on commit e9d8054

Please sign in to comment.