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

Anshum Gupta updated SOLR-7602:
-------------------------------
    Attachment: SOLR-7602.patch

I think just checking if a core is closed already before calling a close on it 
should be a good solution.

The problem here is that registerCore fails, as the coreContainer is closed. 
This exception is then caught and an attempt is made to close the core whereas 
the core would already be closed by this time, causing the ref count to be -1.

> 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
>         Attachments: SOLR-7602.patch
>
>
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to