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


##########
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:
   ❌ JSR-239
   ⭕️ JSR-236



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to