[ 
https://issues.apache.org/jira/browse/SOLR-9291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar updated SOLR-9291:
----------------------------------------
    Attachment: SOLR-9291.patch

This thread is re-trying to load a resource from ZK after the session is 
expired. A simple fix is to check if the server has been shutdown before 
attempting the sleep.

> TestSolrConfigHandlerCloud leaks a thread
> -----------------------------------------
>
>                 Key: SOLR-9291
>                 URL: https://issues.apache.org/jira/browse/SOLR-9291
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud, Tests
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 6.2, master (7.0)
>
>         Attachments: SOLR-9291.patch
>
>
> See http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/17211/
> {code}
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/17211/
> Java: 64bit/jdk-9-ea+125 -XX:-UseCompressedOops -XX:+UseConcMarkSweepGC
> 1 tests failed.
> FAILED:  
> junit.framework.TestSuite.org.apache.solr.handler.TestSolrConfigHandlerCloud
> Error Message:
> 1 thread leaked from SUITE scope at 
> org.apache.solr.handler.TestSolrConfigHandlerCloud:     1) Thread[id=13408, 
> name=Thread-4239, state=TIMED_WAITING, group=TGRP-TestSolrConfigHandlerCloud] 
>         at java.lang.Thread.sleep(java.base@9-ea/Native Method)         at 
> org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:101)
>          at 
> org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:333)
>          at 
> org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:48)  
>        at 
> org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)
>          at 
> org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:107)
>          at 
> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)     
>     at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:959)      
>    at 
> org.apache.solr.core.SolrCore.lambda$getConfListener$6(SolrCore.java:2544)    
>      at org.apache.solr.core.SolrCore$$Lambda$190/2120853973.run(Unknown 
> Source)         at 
> org.apache.solr.cloud.ZkController$4.run(ZkController.java:2445)
> Stack Trace:
> com.carrotsearch.randomizedtesting.ThreadLeakError: 1 thread leaked from 
> SUITE scope at org.apache.solr.handler.TestSolrConfigHandlerCloud:
>    1) Thread[id=13408, name=Thread-4239, state=TIMED_WAITING, 
> group=TGRP-TestSolrConfigHandlerCloud]
>         at java.lang.Thread.sleep(java.base@9-ea/Native Method)
>         at 
> org.apache.solr.cloud.ZkSolrResourceLoader.openResource(ZkSolrResourceLoader.java:101)
>         at 
> org.apache.solr.core.SolrResourceLoader.openSchema(SolrResourceLoader.java:333)
>         at 
> org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:48)
>         at 
> org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:75)
>         at 
> org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:107)
>         at 
> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
>         at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:959)
>         at 
> org.apache.solr.core.SolrCore.lambda$getConfListener$6(SolrCore.java:2544)
>         at org.apache.solr.core.SolrCore$$Lambda$190/2120853973.run(Unknown 
> Source)
>         at org.apache.solr.cloud.ZkController$4.run(ZkController.java:2445)
>         at __randomizedtesting.SeedInfo.seed([BADD07D0FBA79324]:0)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to