You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2025/12/13 00:16:33 UTC

(solr) branch branch_9x updated: SOLR-17983: Fixes for earlier java versions

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new a0dc50f4ada SOLR-17983: Fixes for earlier java versions
a0dc50f4ada is described below

commit a0dc50f4ada7d6f909c8fd338af0a4b5d1af724d
Author: Houston Putman <ho...@apache.org>
AuthorDate: Fri Dec 12 16:16:20 2025 -0800

    SOLR-17983: Fixes for earlier java versions
---
 .../apache/solr/handler/component/ParallelHttpShardHandler.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/handler/component/ParallelHttpShardHandler.java b/solr/core/src/java/org/apache/solr/handler/component/ParallelHttpShardHandler.java
index 5eb9c992ed9..a3e964cf95f 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/ParallelHttpShardHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/ParallelHttpShardHandler.java
@@ -90,9 +90,11 @@ public class ParallelHttpShardHandler extends HttpShardHandler {
           try {
             if (t != null) {
               Throwable failure = t;
-              if (failure instanceof CompletionException completionException
-                  && completionException.getCause() != null) {
-                failure = completionException.getCause();
+              if (failure instanceof CompletionException) {
+                CompletionException completionException = (CompletionException) failure;
+                if (completionException.getCause() != null) {
+                  failure = completionException.getCause();
+                }
               }
               if (!(failure instanceof CancellationException)) {
                 recordShardSubmitError(