lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-9847) Deadlock on ManagedIndexSchema lock.
Date Mon, 12 Dec 2016 02:59:58 GMT

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

Mark Miller commented on SOLR-9847:
-----------------------------------

The stacks:

{noformat}
qtp1112580055-3894 [WAITING]
sun.misc.Unsafe.park(boolean, long) Unsafe.java (native)
java.util.concurrent.locks.LockSupport.parkNanos(Object, long) LockSupport.java:215
java.util.concurrent.FutureTask.awaitDone(boolean, long) FutureTask.java:426
java.util.concurrent.FutureTask.get(long, TimeUnit) FutureTask.java:204
java.util.concurrent.AbstractExecutorService.invokeAll(Collection, long, TimeUnit) AbstractExecutorService.java:289
org.apache.solr.schema.ManagedIndexSchema.waitForSchemaZkVersionAgreement(String, String,
int, ZkController, int) ManagedIndexSchema.java:238
org.apache.solr.schema.SchemaManager.waitForOtherReplicasToUpdate(TimeOut, int) SchemaManager.java:167
org.apache.solr.schema.SchemaManager.doOperations(List) SchemaManager.java:137
org.apache.solr.schema.SchemaManager.performOperations(Reader) SchemaManager.java:92
org.apache.solr.handler.SchemaHandler.handleRequestBody(SolrQueryRequest, SolrQueryResponse)
SchemaHandler.java:91
org.apache.solr.handler.RequestHandlerBase.handleRequest(SolrQueryRequest, SolrQueryResponse)
RequestHandlerBase.java:152
org.apache.solr.core.SolrCore.execute(SolrRequestHandler, SolrQueryRequest, SolrQueryResponse)
SolrCore.java:2227
{noformat}

{noformat}
zkCallback-535-thread-2-processing-n:127.0.0.1:34881_c_c [BLOCKED]
org.apache.solr.schema.ZkIndexSchemaReader.updateSchema(Watcher, int) ZkIndexSchemaReader.java:131
org.apache.solr.schema.ZkIndexSchemaReader.access$200(ZkIndexSchemaReader, Watcher, int) ZkIndexSchemaReader.java:39
org.apache.solr.schema.ZkIndexSchemaReader$2.process(WatchedEvent) ZkIndexSchemaReader.java:97
org.apache.solr.common.cloud.SolrZkClient$3.lambda$process$0(Watcher, WatchedEvent) SolrZkClient.java:268
org.apache.solr.common.cloud.SolrZkClient$3$$Lambda$62.run()
java.util.concurrent.Executors$RunnableAdapter.call() Executors.java:511
java.util.concurrent.FutureTask.run() FutureTask.java:266
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ArrayList,
List, Map, String, Runnable, Exception) ExecutorUtil.java:229
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$40.run()
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) ThreadPoolExecutor.java:1142
java.util.concurrent.ThreadPoolExecutor$Worker.run() ThreadPoolExecutor.java:617
java.lang.Thread.run() Thread.java:745
{noformat}

{noformat}
zkCallback-522-thread-2-processing-n:127.0.0.1:39199_c_c [BLOCKED]
org.apache.solr.schema.ZkIndexSchemaReader.updateSchema(Watcher, int) ZkIndexSchemaReader.java:131
org.apache.solr.schema.ZkIndexSchemaReader.access$200(ZkIndexSchemaReader, Watcher, int) ZkIndexSchemaReader.java:39
org.apache.solr.schema.ZkIndexSchemaReader$2.process(WatchedEvent) ZkIndexSchemaReader.java:97
org.apache.solr.common.cloud.SolrZkClient$3.lambda$process$0(Watcher, WatchedEvent) SolrZkClient.java:268
org.apache.solr.common.cloud.SolrZkClient$3$$Lambda$62.run()
java.util.concurrent.Executors$RunnableAdapter.call() Executors.java:511
java.util.concurrent.FutureTask.run() FutureTask.java:266
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ArrayList,
List, Map, String, Runnable, Exception) ExecutorUtil.java:229
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$40.run()
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) ThreadPoolExecutor.java:1142
java.util.concurrent.ThreadPoolExecutor$Worker.run() ThreadPoolExecutor.java:617
java.lang.Thread.run() Thread.java:745
{noformat}

> Deadlock on ManagedIndexSchema lock.
> ------------------------------------
>
>                 Key: SOLR-9847
>                 URL: https://issues.apache.org/jira/browse/SOLR-9847
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Mark Miller
>         Attachments: SOLR-9847.patch
>
>
> Seems we hold the lock while in ManagedIndexSchema.waitForSchemaZkVersionAgreement, so
we may never see agreement because are updates may also be waiting on that lock.



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

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


Mime
View raw message