[
https://issues.apache.org/jira/browse/SOLR-5145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13739531#comment-13739531
]
Erick Erickson commented on SOLR-5145:
--------------------------------------
This Shouldn't Be Possible (tm).
The fact that one thread is at CoreContainer[358] should mean
1> the isShutDown variable has been set to true
2> solrCores.getModifyLock().notifyAll() should have been called which would
3> wake up the closer thread which should
4> never wait again because once waked up, the next time it tests isShutdown it
should exit without waiting on the getModifyLock.
But that does assume that the container object in the CloserThread class is the
same object that holds the isShutDown variable passed in when it was created
and that the isShutDown member var doesn't get switched back to false somehow.
Not quite sure how I'd track that down though.
> wait w/o notify situation happening on shutdown in
> CoreContainer/CloserThread/SolrCores.modifyLock
> --------------------------------------------------------------------------------------------------
>
> Key: SOLR-5145
> URL: https://issues.apache.org/jira/browse/SOLR-5145
> Project: Solr
> Issue Type: Bug
> Reporter: Hoss Man
>
> Working on SOLR-4952 i was running tests on the 4x branch and noticed
> TestManagedSchema.testPersistUniqueKey stalled for 1623s -- but nothing baout
> hte situation seems to be specific to that test.
> I'll attache a threaddump, but the key things i note...
> * TestHarness is trying to shutdown the CoreContainer
> * CoreContainer.shutdown(CoreContainer.java:358) is waiting on
> <0x00000000f690b880> (a org.apache.solr.core.CloserThread)
> * CloserThread.run(CoreContainer.java:961) is waiting on <0x00000000e068d718>
> (a java.lang.Object)
> ** that's aparently "SolrCores.modifyLock"
> * a "searcherExecutor-46-thread-1" is still alive and parking to wait for
> <0x00000000f66ff860> (a
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
> * no other threads seem to be doing anything -- so as far as i can tell
> nothing is ever going to notify on that modifyLock
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]