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/07/16 16:04:34 UTC

[lucene-solr] 02/02: @215 - Bring back the queue.

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 b96a9195d49bc771fbfff7527d20e0cfff59b284
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Jul 16 11:03:10 2020 -0500

    @215 - Bring back the queue.
---
 solr/solrj/src/java/org/apache/solr/common/ParWork.java             | 3 ++-
 solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/solrj/src/java/org/apache/solr/common/ParWork.java b/solr/solrj/src/java/org/apache/solr/common/ParWork.java
index bdc760a..079f13d 100644
--- a/solr/solrj/src/java/org/apache/solr/common/ParWork.java
+++ b/solr/solrj/src/java/org/apache/solr/common/ParWork.java
@@ -66,7 +66,7 @@ public class ParWork implements Closeable {
   protected final static ThreadLocal<ExecutorService> THREAD_LOCAL_EXECUTOR = new ThreadLocal<>();
   public static volatile int MAXIMUM_POOL_SIZE;
   public static final long KEEP_ALIVE_TIME = 10;
-  public static volatile int CAPACITY;
+  public static volatile int CAPACITY = 30;
 
   private Set<Object> collectSet = null;
 
@@ -635,6 +635,7 @@ public class ParWork implements Closeable {
 //            Thread.currentThread().interrupt();
 //          }
 //          executor.execute(r);
+         // considering this, does end up out of order
          r.run();
        }
      });
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
index 98e7b7e..2dedb8d 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
@@ -86,6 +86,7 @@ public class ZkCmdExecutor {
 
         return (T) operation.execute();
       } catch (KeeperException.ConnectionLossException e) {
+        log.warn("ConnectionLost to ZK");
         if (exception == null) {
           exception = e;
         }