mirror of https://github.com/apache/lucene.git
SOLR-9305, SOLR-9390: *really* dont' use directToLeaders
This commit is contained in:
parent
09a39e1348
commit
00035c8511
|
@ -87,7 +87,10 @@ public class HttpPartitionTest extends AbstractFullDistribZkTestBase {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected CloudSolrClient createCloudClient(String defaultCollection) {
|
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());
|
client.setParallelUpdates(random().nextBoolean());
|
||||||
if (defaultCollection != null) client.setDefaultCollection(defaultCollection);
|
if (defaultCollection != null) client.setDefaultCollection(defaultCollection);
|
||||||
client.getLbClient().setConnectionTimeout(30000);
|
client.getLbClient().setConnectionTimeout(30000);
|
||||||
|
|
Loading…
Reference in New Issue