diff --git a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java index b6f828e10dd..3b919ae06d6 100644 --- a/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java +++ b/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java @@ -600,7 +600,8 @@ private void processComponents( ? shardHandler1.takeCompletedIncludingErrors() : shardHandler1.takeCompletedOrError(); if (srsp == null) break; // no more requests to wait for - AtomicReference detailMesg = new AtomicReference<>(); // or perhaps new Object[1] ? + AtomicReference detailMesg = + new AtomicReference<>(); // or perhaps new Object[1] ? boolean anyResponsesPartial = srsp.getShardRequest().responses.stream() @@ -653,7 +654,6 @@ private void processComponents( rsp.getResponseHeader().add(ThreadCpuTimer.CPU_TIME, totalShardCpuTime); rsp.addToLog(ThreadCpuTimer.CPU_TIME, totalShardCpuTime); } - return; // nothing for components to see, don't need to finish stages } } }