From a41dd86e3cbb7799c2a6937d7bc0a07ec3c6e1a8 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Thu, 22 Sep 2016 13:21:23 +0100 Subject: [PATCH] SOLR-9305, SOLR-9390: *really* dont' use directToLeaders --- .../src/test/org/apache/solr/cloud/HttpPartitionTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java b/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java index faf3309a65e..82fbec0c714 100644 --- a/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/HttpPartitionTest.java @@ -87,7 +87,10 @@ public class HttpPartitionTest extends AbstractFullDistribZkTestBase { */ @Override protected CloudSolrClient createCloudClient(String defaultCollection) { - CloudSolrClient client = getCloudSolrClient(zkServer.getZkAddress(), false); + CloudSolrClient client = new CloudSolrClient.Builder() + .withZkHost(zkServer.getZkAddress()) + .sendDirectUpdatesToAnyShardReplica() + .build(); client.setParallelUpdates(random().nextBoolean()); if (defaultCollection != null) client.setDefaultCollection(defaultCollection); client.getLbClient().setConnectionTimeout(30000);