Skip to content

Commit 8ad414b

Browse files
committed
Fix constraints
1 parent b816a15 commit 8ad414b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/WriteLoadConstraintMonitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void onNewInfo(ClusterInfo clusterInfo) {
140140
}
141141

142142
private static String nodeSummary(Set<String> nodeIds) {
143-
if (nodeIds.size() < MAX_NODE_IDS_IN_MESSAGE) {
143+
if (nodeIds.size() > 0 && nodeIds.size() <= MAX_NODE_IDS_IN_MESSAGE) {
144144
return "[" + String.join(", ", nodeIds) + "]";
145145
} else {
146146
return nodeIds.size() + " nodes";

0 commit comments

Comments
 (0)