You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/09/09 16:14:00 UTC
[jira] [Commented] (SOLR-16182) Close ZkClientClusterStateProvider in tests to avoid thread leak
[ https://issues.apache.org/jira/browse/SOLR-16182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17602447#comment-17602447 ]
ASF subversion and git services commented on SOLR-16182:
--------------------------------------------------------
Commit d0412413e6233615119abd05ad531c38981ec554 in solr's branch refs/heads/branch_9_0 from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=d0412413e62 ]
SOLR-16182: Close ZkClientClusterStateProvider in tests to avoid thread leak (#837)
> Close ZkClientClusterStateProvider in tests to avoid thread leak
> ----------------------------------------------------------------
>
> Key: SOLR-16182
> URL: https://issues.apache.org/jira/browse/SOLR-16182
> Project: Solr
> Issue Type: Test
> Components: Tests
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Fix For: 9.1
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> https://lists.apache.org/list?builds@solr.apache.org:lte=1M:org.apache.solr.client.solrj.impl.CloudSolrClientBuilderTest.classMethod
> I personally haven't seen this fail locally, but looking at the test, ZkClientClusterStateProvider is created but never closed.
> [~magibney] pointed out in the PR this problem most likely exists elsewhere so will fix it up all at once:
> {code:java}
> > find solr -name '*.java' | xargs grep -l 'ZkClientClusterStateProvider\.from('
> solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientMultiConstructorTest.java
> solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientBuilderTest.java
> solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientTest.java
> solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientBuilderTest.java
> solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java
> solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudHttp2SolrClientMultiConstructorTest.java
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org