[
https://issues.apache.org/jira/browse/SOLR-8708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joel Bernstein reassigned SOLR-8708:
------------------------------------
Assignee: Joel Bernstein
> 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
> Assignee: Joel Bernstein
> Fix For: 6.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]