You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2019/03/28 22:54:58 UTC

[lucene-solr] branch branch_8x updated: SOLR-13349:High CPU usage in Solr due to Java 8 bug

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

erick pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 03a3562  SOLR-13349:High CPU usage in Solr due to Java 8 bug
03a3562 is described below

commit 03a3562f782a795afb3e5dbb474aca216273cc4d
Author: erick <er...@gmail.com>
AuthorDate: Thu Mar 28 15:49:54 2019 -0700

    SOLR-13349:High CPU usage in Solr due to Java 8 bug
    
    (cherry picked from commit b2941ff)
---
 solr/CHANGES.txt                                             | 3 +++
 solr/core/src/java/org/apache/solr/update/CommitTracker.java | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 960481c..db15d72 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -116,6 +116,9 @@ Bug Fixes
 
 * SOLR-13351: Workaround for VELOCITY-908 (Kevin Risden)
 
+ * SOLR-13349: High CPU usage in Solr due to Java 8 bug (Erick Erickson)
+
+
 Improvements
 ----------------------
 
diff --git a/solr/core/src/java/org/apache/solr/update/CommitTracker.java b/solr/core/src/java/org/apache/solr/update/CommitTracker.java
index 55b2287..975f166 100644
--- a/solr/core/src/java/org/apache/solr/update/CommitTracker.java
+++ b/solr/core/src/java/org/apache/solr/update/CommitTracker.java
@@ -59,7 +59,7 @@ public final class CommitTracker implements Runnable {
   private long tLogFileSizeUpperBound;
   
   private final ScheduledExecutorService scheduler = 
-      Executors.newScheduledThreadPool(0, new DefaultSolrThreadFactory("commitScheduler"));
+      Executors.newScheduledThreadPool(1, new DefaultSolrThreadFactory("commitScheduler"));
   private ScheduledFuture pending;
   
   // state