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 23:17:00 UTC

[lucene-solr] branch branch_7_7 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_7_7
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


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

commit 9e1ada0ab72f3a41104b422ebd03665528b7d2ab
Author: erick <er...@gmail.com>
AuthorDate: Thu Mar 28 16:16:54 2019 -0700

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

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 5b7a63b..eb887af 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -57,6 +57,8 @@ Bug fixes
 * SOLR-11876: In-place update fails when resolving from Tlog if schema has a required field (Justin Deoliveira, janhoy,
   Ishan Chattopadhyaya)
 
+  * SOLR-13349: High CPU usage in Solr due to Java 8 bug (Erick Erickson)
+
 ==================  7.7.1 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
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