Apache Lucene open-source search software
SOLR-930 -- log error close is already closed
Ryan McKinleybbe3c679db40
diff --git a/src/java/org/apache/solr/core/SolrCore.java b/src/java/org/apache/solr/core/SolrCore.javaindex b7a0c967392..b72a425f7b3 100644--- a/src/java/org/apache/solr/core/SolrCore.java+++ b/src/java/org/apache/solr/core/SolrCore.java@@ -694,10 +694,12 @@ public final class SolrCore implements SolrInfoMBean {*/public void close() {int count = refCount.decrementAndGet();- if (count > 0) return;+ if (count > 0){+ log.warn( "Attempted close on {} did not succeed because the new reference count {} is > 0. ", this, count );+ return;+ }if (count < 0) {- //throw new RuntimeException("Too many closes on " + this);- log.error("Too many close {count:"+count+"} on " + this + ". Please report this exception to [email protected]");+ log.error("Too many close [count:{}] on {}. Please report this exception to [email protected]", count, this );return;}log.info(logid+" CLOSING SolrCore " + this);