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

Mark Miller commented on SOLR-7602:
-----------------------------------

bq. There's a close in the SolrCore constructor, so that calls a close in case 
of an exception and also rethrows the exception.
bq. The coreContainer.create method also tries to close the same core in the 
catch block, which causes this issue when an exception occurs while creating a 
new SolrCore.

How would the CoreContainer get a reference to call close on if an exception 
was thrown from the constructor of the SolrCore?

> Frequent MultiThreadedOCPTest failures on Jenkins
> -------------------------------------------------
>
>                 Key: SOLR-7602
>                 URL: https://issues.apache.org/jira/browse/SOLR-7602
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Anshum Gupta
>
> The number of failed MultiThreadedOCPTest runs on Jenkins has gone up 
> drastically since Apr 30, 2015.
> {code}
> REGRESSION:  org.apache.solr.cloud.MultiThreadedOCPTest.test
> Error Message:
> Captured an uncaught exception in thread: Thread[id=6313, 
> name=parallelCoreAdminExecutor-1988-thread-15, state=RUNNABLE, 
> group=TGRP-MultiThreadedOCPTest]
> Stack Trace:
> com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an 
> uncaught exception in thread: Thread[id=6313, 
> name=parallelCoreAdminExecutor-1988-thread-15, state=RUNNABLE, 
> group=TGRP-MultiThreadedOCPTest]
>         at 
> __randomizedtesting.SeedInfo.seed([1FD11A82D96D185B:97852558779175A3]:0)
> Caused by: java.lang.AssertionError: Too many closes on SolrCore
>         at __randomizedtesting.SeedInfo.seed([1FD11A82D96D185B]:0)
>         at org.apache.solr.core.SolrCore.close(SolrCore.java:1138)
>         at org.apache.solr.common.util.IOUtils.closeQuietly(IOUtils.java:31)
>         at org.apache.solr.core.CoreContainer.create(CoreContainer.java:535)
>         at org.apache.solr.core.CoreContainer.create(CoreContainer.java:494)
>         at 
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:598)
>         at 
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:212)
>         at 
> org.apache.solr.handler.admin.CoreAdminHandler$ParallelCoreAdminHandlerThread.run(CoreAdminHandler.java:1219)
>         at 
> org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:148)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> {code}
> Last failure:
> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-5.x-Linux/12665/



--
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