Skip to content

Commit 9c88cae

Browse files
committed
Change return to continue (refactored from lambda to loop)
1 parent 34d92df commit 9c88cae

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
@@ -86,7 +86,7 @@ public void onNewInfo(ClusterInfo clusterInfo) {
8686
if (nodeRoles.contains(DiscoveryNodeRole.SEARCH_ROLE) || nodeRoles.contains(DiscoveryNodeRole.ML_ROLE)) {
8787
// Search & ML nodes are not expected to have write load hot-spots and are not considered for shard relocation.
8888
// TODO (ES-13314): consider stateful data tiers
89-
return;
89+
continue;
9090
}
9191
totalIngestNodes++;
9292
final NodeUsageStatsForThreadPools.ThreadPoolUsageStats writeThreadPoolStats = usageStats.threadPoolUsageStatsMap()

0 commit comments

Comments
 (0)