lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject [lucene-solr] branch reference_impl updated: @748 No init after close.
Date Sat, 05 Sep 2020 18:19:24 GMT
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


The following commit(s) were added to refs/heads/reference_impl by this push:
     new 4cbc723  @748 No init after close.
4cbc723 is described below

commit 4cbc723949023d57d72ee1e3f3d8999c2f632c41
Author: markrmiller@gmail.com <markrmiller@gmail.com>
AuthorDate: Sat Sep 5 13:18:45 2020 -0500

    @748 No init after close.
---
 solr/core/src/java/org/apache/solr/update/UpdateLog.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/solr/core/src/java/org/apache/solr/update/UpdateLog.java b/solr/core/src/java/org/apache/solr/update/UpdateLog.java
index 7b5a73a..710dd37 100644
--- a/solr/core/src/java/org/apache/solr/update/UpdateLog.java
+++ b/solr/core/src/java/org/apache/solr/update/UpdateLog.java
@@ -365,6 +365,9 @@ public class UpdateLog implements PluginInfoInitialized, SolrMetricProducer
{
    * for an existing log whenever the core or update handler changes.
    */
   public synchronized void init(UpdateHandler uhandler, SolrCore core) {
+    if (isClosed) {
+      throw new AlreadyClosedException();
+    }
     if (dataDir != null) {
       ObjectReleaseTracker.release(this);
     }


Mime
View raw message