You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/11/11 16:48:29 UTC

[GitHub] [solr] risdenk commented on a diff in pull request #464: SOLR-15861: ConcurrentUpdateSolrClient should work with ManagedExecutorService

risdenk commented on code in PR #464:
URL: https://github.com/apache/solr/pull/464#discussion_r1020391820


##########
solr/solrj/src/java/org/apache/solr/common/util/ExecutorUtil.java:
##########
@@ -83,6 +83,24 @@ public interface InheritableThreadLocalProvider {
     void clean(AtomicReference<Object> ctx);
   }
 
+  public static boolean isShutdown(ExecutorService pool) {
+    try {
+      return pool.isShutdown();
+    } catch (IllegalStateException e) {
+      // JSR-239 ManagedExecutorService cannot query the lifecycle, so just return false

Review Comment:
   thanks fixing in a few minutes.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org