Skip to content

Apache Lucene open-source search software

SOLR-2008: avoid possible RejectedExecutionException w/autoCommit by making SolreCore close the UpdateHandler before closing the SearchExecutor

Chris M. Hostetterf521e84c5a82
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b97e6c8631f..d800f40eabd 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -376,6 +376,11 @@ Bug Fixes
* SOLR-1995: Change date format from "hour in am/pm" to "hour in day"
in CoreContainer and SnapShooter. (Hayato Ito, koji)
+* SOLR-2008: avoid possible RejectedExecutionException w/autoCommit
+ by making SolreCore close the UpdateHandler before closing the
+ SearchExecutor. (NarasimhaRaju, hossman)
+
+
Other Changes
----------------------
diff --git a/solr/src/java/org/apache/solr/core/SolrCore.java b/solr/src/java/org/apache/solr/core/SolrCore.java
index f9265d3a1f1..1f657fecb5d 100644
--- a/solr/src/java/org/apache/solr/core/SolrCore.java
+++ b/solr/src/java/org/apache/solr/core/SolrCore.java
@@ -690,17 +690,17 @@ public final class SolrCore implements SolrInfoMBean {
SolrException.log(log, e);
}
try {
- closeSearcher();
+ updateHandler.close();
} catch (Exception e) {
SolrException.log(log,e);
}
try {
- searcherExecutor.shutdown();
+ closeSearcher();
} catch (Exception e) {
SolrException.log(log,e);
}
try {
- updateHandler.close();
+ searcherExecutor.shutdown();
} catch (Exception e) {
SolrException.log(log,e);
}