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

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

Joel Bernstein created SOLR-8708:
------------------------------------

             Summary: 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
            Reporter: Joel Bernstein


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