You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/17 23:11:56 UTC
[lucene-solr] 26/49: @540 Just a tiny bit of ParExecutorService
polish.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 694b1de4806cdff88e6ac31358de4b8ec290fbbc
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Fri Aug 14 12:20:09 2020 -0500
@540 Just a tiny bit of ParExecutorService polish.
---
solr/solrj/src/java/org/apache/solr/common/ParWorkExecService.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/solr/solrj/src/java/org/apache/solr/common/ParWorkExecService.java b/solr/solrj/src/java/org/apache/solr/common/ParWorkExecService.java
index 8074259..ad0a55f 100644
--- a/solr/solrj/src/java/org/apache/solr/common/ParWorkExecService.java
+++ b/solr/solrj/src/java/org/apache/solr/common/ParWorkExecService.java
@@ -203,7 +203,8 @@ public class ParWorkExecService extends AbstractExecutorService {
@Override
public void execute(Runnable runnable) {
if (shutdown) {
- throw new RejectedExecutionException();
+ runIt(runnable, true);
+ return;
}
running.incrementAndGet();
if (runnable instanceof ParWork.SolrFutureTask) {