[ 
https://issues.apache.org/jira/browse/SOLR-18155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18065106#comment-18065106
 ] 

Pierre Salagnac commented on SOLR-18155:
----------------------------------------

My understanding is it happens when a replica wins the leader election and it 
tries to actually become the leader after theĀ {{ZkController}} instance was 
shut down (call to {{preClose()}} already done or in-progress.

This is probably due to the `Thread.sleep(2500)` in the leader process.

{code:java}
      // wait a moment for any floating updates to finish
      Thread.sleep(2500);
{code}

A simple fix could be to abort the leadership process when parent 
{{ZkController}} was closed.

> CollectionsAPISolrJTest seed reliably leaks unclosed ZkShardTerms
> -----------------------------------------------------------------
>
>                 Key: SOLR-18155
>                 URL: https://issues.apache.org/jira/browse/SOLR-18155
>             Project: Solr
>          Issue Type: Task
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> The following seed reliably fails on {{main}} (as of 
> {{684894af5f1591af1c49c2bb6fdfdd83a94a89b2}}) due to ObjectReleaseTracker's 
> of ZkShardTerms...
> {noformat}
> ./gradlew :solr:solrj:test --tests 
> "org.apache.solr.client.solrj.impl.CloudSolrClientCacheTest.testStaleStateRetryWaitsAfterSkipFailure"
>  "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:+UseParallelGC 
> -XX:ActiveProcessorCount=1 -XX:ReservedCodeCacheSize=120m" 
> -Ptests.seed=517946C27016E5DC -Ptests.useSecurityManager=true 
> -Ptests.file.encoding=ISO-8859-1
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to