HoustonPutman commented on code in PR #760:
URL: https://github.com/apache/solr/pull/760#discussion_r1819446921
##########
solr/solrj-streaming/src/test/org/apache/solr/client/solrj/io/stream/BadClusterTest.java:
##########
@@ -97,15 +102,15 @@ private void testAllNodesDown() throws Exception {
}
private void testClusterShutdown() throws Exception {
-
- CloudSolrStream stream = new CloudSolrStream(buildSearchExpression(),
streamFactory);
cluster.shutdown();
- try {
- getTuples(stream);
- fail("Expected IOException: SolrException: TimeoutException");
- } catch (IOException ioe) {
- SolrException se = (SolrException) ioe.getCause();
+ try (CloudSolrClient cloudSolrClient =
+ new CloudHttp2SolrClient.Builder(Collections.singletonList(zkHost),
Optional.empty())
+ .withZkConnectTimeout(1, TimeUnit.SECONDS)
+ .build()) {
+ cloudSolrClient.getById(collection, "1");
Review Comment:
Ahh I guess so, but it is a slow test because of you can't override the
ZkConnectTimeout of the Streaming client.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]