You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Krzysztof Kwiatosz (Updated) (JIRA)" <ji...@apache.org> on 2011/11/24 16:05:40 UTC

[jira] [Updated] (SOLR-2913) Interrupted Exception when closing a SolrCore

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

Krzysztof Kwiatosz updated SOLR-2913:
-------------------------------------

    Description: 
When I try to close a SolrCore instance I get a the following exception:
{code}
ERROR [Task-master-poll] [SolrCore] java.lang.InterruptedException
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1953)
        at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1245)
        at java.util.concurrent.Executors$DelegatedExecutorService.awaitTermination(Executors.java:597)
        at org.apache.solr.core.SolrCore.close(SolrCore.java:715)
{code}

This happens when I want to register a new core and there exists an old core which is being replaced and closed:
{code}
coreContainer.register(newSolrCore, false)
{code}

or if I tried to close the old core manually:
{code}
		final SolrCore oldCore = coreContainer.remove(coreName);
		if (oldCore != null)
		{
				oldCore.close();
		}
{code}

What can be the reason?

  was:
When I try to close a SolrCore instance I get a the following exception:
{code}
ERROR [Task-master-poll] [SolrCore] java.lang.InterruptedException
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1953)
        at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1245)
        at java.util.concurrent.Executors$DelegatedExecutorService.awaitTermination(Executors.java:597)
        at org.apache.solr.core.SolrCore.close(SolrCore.java:715)
{code}

This happens when I want to register a new core and there exists an old core which is being replaced and closed:
{code}
coreContainer.register(newSolrCore, true)
{code}

or if I tried to close the old core manually:
{code}
		final SolrCore oldCore = coreContainer.remove(coreName);
		if (oldCore != null)
		{
				oldCore.close();
		}
{code}

What can be the reason?

    
> Interrupted Exception when closing a SolrCore
> ---------------------------------------------
>
>                 Key: SOLR-2913
>                 URL: https://issues.apache.org/jira/browse/SOLR-2913
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.4
>         Environment: embedded solr 3.4 
>            Reporter: Krzysztof Kwiatosz
>
> When I try to close a SolrCore instance I get a the following exception:
> {code}
> ERROR [Task-master-poll] [SolrCore] java.lang.InterruptedException
>         at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1953)
>         at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1245)
>         at java.util.concurrent.Executors$DelegatedExecutorService.awaitTermination(Executors.java:597)
>         at org.apache.solr.core.SolrCore.close(SolrCore.java:715)
> {code}
> This happens when I want to register a new core and there exists an old core which is being replaced and closed:
> {code}
> coreContainer.register(newSolrCore, false)
> {code}
> or if I tried to close the old core manually:
> {code}
> 		final SolrCore oldCore = coreContainer.remove(coreName);
> 		if (oldCore != null)
> 		{
> 				oldCore.close();
> 		}
> {code}
> What can be the reason?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org