Skip to content

Commit

Permalink
Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
HoustonPutman committed Oct 31, 2019
1 parent 7a49167 commit 9aef437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -1126,8 +1126,7 @@ protected NamedList<Object> sendRequest(SolrRequest request, List<String> inputC
}

// Sort the leader replicas, if any, according to the request preferences (none if !sendToLeaders)
replicaListTransformer.transform(replicas);
Collections.shuffle(theUrlList, rand);
replicaListTransformer.transform(theUrlList);

// Sort the replicas, if any, according to the request preferences and append to our list
replicaListTransformer.transform(replicas);
Expand Down
Expand Up @@ -241,6 +241,7 @@ public List<TupleStream> children() {
}

private List<Future<NamedList>> callShards(List<String> baseUrls) throws IOException {

List<Future<NamedList>> futures = new ArrayList<>();
for (String baseUrl : baseUrls) {
SignificantTermsCall lc = new SignificantTermsCall(baseUrl,
Expand Down Expand Up @@ -281,7 +282,6 @@ public Explanation toExplanation(StreamFactory factory) throws IOException {
}

public Tuple read() throws IOException {

try {
if (tupleIterator == null) {
Map<String, int[]> mergeFreqs = new HashMap<>();
Expand Down

0 comments on commit 9aef437

Please sign in to comment.