Apache Lucene open-source search software
SOLR-930 -- reverting
Ryan McKinleydf6ee4bac901
diff --git a/src/java/org/apache/solr/core/SolrCore.java b/src/java/org/apache/solr/core/SolrCore.javaindex e606862abd6..128afe72341 100644--- a/src/java/org/apache/solr/core/SolrCore.java+++ b/src/java/org/apache/solr/core/SolrCore.java@@ -698,10 +698,7 @@ public final class SolrCore implements SolrInfoMBean {*/public void close() {int count = refCount.decrementAndGet();- if (count > 0){- log.warn( "Attempted close on {} did not succeed because the new reference count {} is > 0. ", this, count );- return;- }+ if (count > 0) return; // close is called often, and only actually closes if nothing is using it.if (count < 0) {log.error("Too many close [count:{}] on {}. Please report this exception to [email protected]", count, this );return;