You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/02/21 04:36:18 UTC

[jira] [Commented] (SOLR-8708) DaemonStream should catch InterruptedException when reading underlying stream.

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

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

Commit 2b3529c3b8b8ea923b6e86a71b22db0d425ca5e7 in lucene-solr's branch refs/heads/master from jbernste
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2b3529c ]

SOLR-8708: DaemonStream should catch InterruptedException when reading underlying stream.


> DaemonStream should catch InterruptedException when reading underlying stream.
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-8708
>                 URL: https://issues.apache.org/jira/browse/SOLR-8708
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 6.0
>            Reporter: Joel Bernstein
>            Assignee: Joel Bernstein
>            Priority: Critical
>             Fix For: 6.0
>
>         Attachments: SOLR-8708.patch
>
>
> Currently the DaemonStream is only catching IOException when reading from the underlying stream. This causes the DaemonStream to not shutdown properly. Jenkins failures look like this:
> {code}
>   [junit4]    > 	at __randomizedtesting.SeedInfo.seed([A9AE0C8FDE484A6D]:0)Throwable #2: com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=2859, name=Thread-971, state=RUNNABLE, group=TGRP-StreamExpressionTest]
>    [junit4]    > Caused by: org.apache.solr.common.SolrException: Could not load collection from ZK: parallelDestinationCollection1
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([A9AE0C8FDE484A6D]:0)
>    [junit4]    > 	at org.apache.solr.common.cloud.ZkStateReader.getCollectionLive(ZkStateReader.java:959)
>    [junit4]    > 	at org.apache.solr.common.cloud.ZkStateReader$LazyCollectionRef.get(ZkStateReader.java:517)
>    [junit4]    > 	at org.apache.solr.common.cloud.ClusterState.getCollectionOrNull(ClusterState.java:189)
>    [junit4]    > 	at org.apache.solr.common.cloud.ClusterState.hasCollection(ClusterState.java:119)
>    [junit4]    > 	at org.apache.solr.client.solrj.impl.CloudSolrClient.getCollectionNames(CloudSolrClient.java:1111)
>    [junit4]    > 	at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWithRetryOnStaleState(CloudSolrClient.java:833)
>    [junit4]    > 	at org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:806)
>    [junit4]    > 	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:149)
>    [junit4]    > 	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:106)
>    [junit4]    > 	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:71)
>    [junit4]    > 	at org.apache.solr.client.solrj.io.stream.UpdateStream.uploadBatchToCollection(UpdateStream.java:256)
>    [junit4]    > 	at org.apache.solr.client.solrj.io.stream.UpdateStream.read(UpdateStream.java:118)
>    [junit4]    > 	at org.apache.solr.client.solrj.io.stream.DaemonStream$StreamRunner.run(DaemonStream.java:245)
>    [junit4]    > Caused by: java.lang.InterruptedException
>    [junit4]    > 	at java.lang.Object.wait(Native Method)
>    [junit4]    > 	at java.lang.Object.wait(Object.java:502)
>    [junit4]    > 	at org.apache.zookeeper.ClientCnxn.submitRequest(ClientCnxn.java:1342)
>    [junit4]    > 	at org.apache.zookeeper.ZooKeeper.getData(ZooKeeper.java:1153)
>    [junit4]    > 	at org.apache.solr.common.cloud.SolrZkClient$7.execute(SolrZkClient.java:353)
>    [junit4]    > 	at org.apache.solr.common.cloud.SolrZkClient$7.execute(SolrZkClient.java:350)
>    [junit4]    > 	at org.apache.solr.common.cloud.ZkCmdExecutor.retryOperation(ZkCmdExecutor.java:60)
>    [junit4]    > 	at org.apache.solr.common.cloud.SolrZkClient.getData(SolrZkClient.java:350)
>    [junit4]    > 	at org.apache.solr.common.cloud.ZkStateReader.fetchCollectionState(ZkStateReader.java:967)
>    [junit4]    > 	at org.apache.solr.common.cloud.ZkStateReader.getCollectionLive(ZkStateReader.java:954)
>    [junit4]    > 	... 12 more
> {code}



--
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