lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6146) Leak in CloudSolrServer causing "Too many open files"
Date Wed, 11 Jun 2014 14:21:02 GMT

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

ASF subversion and git services commented on SOLR-6146:
-------------------------------------------------------

Commit 1601905 from shalin@apache.org in branch 'dev/trunk'
[ https://svn.apache.org/r1601905 ]

SOLR-6146: Close zk before setting interrupt status

> Leak in CloudSolrServer causing "Too many open files"
> -----------------------------------------------------
>
>                 Key: SOLR-6146
>                 URL: https://issues.apache.org/jira/browse/SOLR-6146
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java, SolrCloud
>    Affects Versions: 4.7
>            Reporter: Jessica Cheng
>            Assignee: Shalin Shekhar Mangar
>              Labels: solrcloud, solrj
>             Fix For: 4.9, 5.0
>
>         Attachments: SOLR-6146.patch, SOLR-6146.patch, SOLR-6146.patch, SOLR-6146.patch
>
>
> Due to a misconfiguration in one of our QA clusters, we uncovered a leak in CloudSolrServer.
If this line throws:
> https://github.com/apache/lucene-solr/blob/branch_4x/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java#L242
> then the instantiated ZkStateReader is leaked.
> Here's the stacktrace of the Exception (we're using a custom build so the line numbers
won't quite match up, but it gives the idea):
> at org.apache.solr.client.solrj.impl.CloudSolrServer.connect(CloudSolrServer.java:304)
at org.apache.solr.client.solrj.impl.CloudSolrServer.requestWithRetryOnStaleState(CloudSolrServer.java:568)
at org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:557) at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:33)
at com.apple.cie.search.client.crossdc.MirroredSolrRequestHandler.handleItem(MirroredSolrRequestHandler.java:100)
at com.apple.cie.search.client.crossdc.MirroredSolrRequestHandler.handleItem(MirroredSolrRequestHandler.java:33)
at com.apple.coda.queueing.CodaQueueConsumer$StreamProcessor.run(CodaQueueConsumer.java:147)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
KeeperErrorCode = NoNode for /live_nodes at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51) at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1468)
at org.apache.solr.common.cloud.SolrZkClient$6.execute(SolrZkClient.java:256) at org.apache.solr.common.cloud.SolrZkClient$6.execute(SolrZkClient.java:253)
at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:73) at org.apache.solr.common.cloud.SolrZkClient.getChildren(SolrZkClient.java:253)
at org.apache.solr.common.cloud.ZkStateReader.createClusterStateWatchersAndUpdate(ZkStateReader.java:305)
at org.apache.solr.client.solrj.impl.CloudSolrServer.createZkStateReader(CloudSolrServer.java:935)
at org.apache.solr.client.solrj.impl.CloudSolrServer.connect(CloudSolrServer.java:298) ...
10 more



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message