Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

remove this check and use of lucene core

Mark Robert Miller924857fc4413
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java
index c5737cef5df..098405de588 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java
@@ -34,7 +34,6 @@ import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.apache.commons.io.FileUtils;
-import org.apache.lucene.store.AlreadyClosedException;
import org.apache.solr.common.SolrException;
import org.apache.solr.common.cloud.ZkClientConnectionStrategy.ZkUpdate;
import org.apache.zookeeper.CreateMode;
@@ -644,9 +643,6 @@ public class SolrZkClient {
* @throws InterruptedException
*/
public void close() throws InterruptedException {
- if (isClosed) {
- throw new AlreadyClosedException("This client has already been closed");
- }
isClosed = true;
keeper.close();
numCloses.incrementAndGet();