mirror of https://github.com/apache/lucene.git
SOLR-10431: Fix precommit
This commit is contained in:
parent
cc8b5bab0b
commit
5a25ef0e77
|
@ -1285,7 +1285,7 @@ public class CloudSolrClient extends SolrClient {
|
|||
Set<String> liveNodes = stateProvider.liveNodes();
|
||||
if (!liveNodes.isEmpty()) {
|
||||
List<String> liveNodesList = new ArrayList<>(liveNodes);
|
||||
Collections.shuffle(liveNodesList);
|
||||
Collections.shuffle(liveNodesList, rand);
|
||||
theUrlList.add(ZkStateReader.getBaseUrlForNodeName(liveNodesList.get(0),
|
||||
(String) stateProvider.getClusterProperty(ZkStateReader.URL_SCHEME,"http")));
|
||||
}
|
||||
|
|
|
@ -20,8 +20,6 @@ package org.apache.solr.client.solrj.request;
|
|||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.io.StringReader;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
|
Loading…
Reference in New Issue