mirror of https://github.com/apache/lucene.git
SOLR-10173: Make HttpShardHandlerFactory.getReplicaListTransformer more extensible. (Ramsey Haddad via Christine Poerschke)
This commit is contained in:
parent
365a7ac0db
commit
ee55bec9f0
|
@ -226,6 +226,9 @@ Other Changes
|
|||
|
||||
* SOLR-9966: Convert/migrate tests using EasyMock to Mockito (Cao Manh Dat, Uwe Schindler)
|
||||
|
||||
* SOLR-10173: Make HttpShardHandlerFactory.getReplicaListTransformer more extensible.
|
||||
(Ramsey Haddad via Christine Poerschke)
|
||||
|
||||
================== 6.4.2 ==================
|
||||
|
||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||
|
|
|
@ -103,7 +103,7 @@ public class HttpShardHandlerFactory extends ShardHandlerFactory implements org.
|
|||
|
||||
private HttpClientMetricNameStrategy metricNameStrategy;
|
||||
|
||||
private final Random r = new Random();
|
||||
protected final Random r = new Random();
|
||||
|
||||
private final ReplicaListTransformer shufflingReplicaListTransformer = new ShufflingReplicaListTransformer(r);
|
||||
|
||||
|
@ -318,7 +318,7 @@ public class HttpShardHandlerFactory extends ShardHandlerFactory implements org.
|
|||
return s != null && s.startsWith(preferredHostAddress);
|
||||
}
|
||||
}
|
||||
ReplicaListTransformer getReplicaListTransformer(final SolrQueryRequest req)
|
||||
protected ReplicaListTransformer getReplicaListTransformer(final SolrQueryRequest req)
|
||||
{
|
||||
final SolrParams params = req.getParams();
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import java.util.List;
|
|||
import org.apache.solr.common.cloud.Replica;
|
||||
import org.apache.solr.common.params.ShardParams;
|
||||
|
||||
interface ReplicaListTransformer {
|
||||
public interface ReplicaListTransformer {
|
||||
|
||||
/**
|
||||
* Transforms the passed in list of choices. Transformations can include (but are not limited to)
|
||||
|
|
|
@ -94,7 +94,7 @@ public class ReplicaListTransformerTest extends LuceneTestCase {
|
|||
transformer = new HttpShardHandlerFactory() {
|
||||
|
||||
@Override
|
||||
ReplicaListTransformer getReplicaListTransformer(final SolrQueryRequest req)
|
||||
protected ReplicaListTransformer getReplicaListTransformer(final SolrQueryRequest req)
|
||||
{
|
||||
final SolrParams params = req.getParams();
|
||||
|
||||
|
|
Loading…
Reference in New Issue