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/15 19:24:58 UTC

[lucene-solr] branch reference_impl_dev updated: @546 Whoops, this stays.

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

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


The following commit(s) were added to refs/heads/reference_impl_dev by this push:
     new 3feaf57  @546 Whoops, this stays.
3feaf57 is described below

commit 3feaf57a29cb3b61a8c6f1079cfefa68b71fa787
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sat Aug 15 14:24:39 2020 -0500

    @546 Whoops, this stays.
---
 solr/core/src/java/org/apache/solr/core/SolrCore.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/core/SolrCore.java b/solr/core/src/java/org/apache/solr/core/SolrCore.java
index ad0dd21..32b47c2 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrCore.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrCore.java
@@ -2168,9 +2168,9 @@ public final class SolrCore implements SolrInfoBean, Closeable {
         // (caches take a little while to instantiate)
         final boolean useCaches = !realtime;
         final String newName = realtime ? "realtime" : "main";
-//        if (isClosed()) { // if we start new searchers after close we won't close them
-//          throw new SolrCoreState.CoreIsClosedException();
-//        }
+        if (isClosed()) { // if we start new searchers after close we won't close them
+          throw new SolrCoreState.CoreIsClosedException();
+        }
         tmp = new SolrIndexSearcher(this, newIndexDir, getLatestSchema(), newName,
             newReader, true, useCaches, true, directoryFactory);