[ https://issues.apache.org/jira/browse/SOLR-13591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17412124#comment-17412124 ]
Murray Johnston commented on SOLR-13591: ---------------------------------------- FWIW, we traced our occurrences of this issue to us inappropriately calling ZkClientClusterStateProvider.close(). In earlier versions of the client the class would reinitialize if the connection was broken but the newer version (properly, in my opinion) refuses to do so and throws the AlreadyClosedException. So this is likely not a bug but a misuse. > AlreadyClosedException in SolrJ > ------------------------------- > > Key: SOLR-13591 > URL: https://issues.apache.org/jira/browse/SOLR-13591 > Project: Solr > Issue Type: Bug > Affects Versions: 8.1.1 > Reporter: Markus Jelsma > Priority: Major > > Since upgrading from 7.7 to 8.1, we regulary get the following exception in > SolrJ. The message is null, the stack trace is: > {code} > org.apache.solr.common.AlreadyClosedException > at > org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.getZkStateReader(ZkClientClusterStateProvider.java:165) > at > org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider.connect(ZkClientClusterStateProvider.java:160) > at > org.apache.solr.client.solrj.impl.BaseCloudSolrClient.connect(BaseCloudSolrClient.java:329) > at > org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:779) > at > org.apache.solr.client.solrj.impl.BaseCloudSolrClient.request(BaseCloudSolrClient.java:769) > at > org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:207) > at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:987) > at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1002) > {code} > The clients are always 8.1.1, the servers are either 7.5 or 8.1.1. There are > no indications in the server logs, although they are set to log level WARN. > We run Zookeeper 3.4.13. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org