mirror of https://github.com/apache/lucene.git
SOLR-6240: Fixed broken tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1610088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4173acfd04
commit
473e0189c6
|
@ -357,7 +357,7 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
|
|||
log.info("After core={} coreNodeName={} was elected leader, it was found in state: "
|
||||
+ lirState + " and needing recovery.", coreName, coreNodeName);
|
||||
List<ZkCoreNodeProps> replicaProps =
|
||||
zkController.getZkStateReader().getReplicaProps(collection, shardId, coreNodeName, null);
|
||||
zkController.getZkStateReader().getReplicaProps(collection, shardId, coreNodeName);
|
||||
|
||||
if (replicaProps != null && replicaProps.size() > 0) {
|
||||
ZkCoreNodeProps coreNodeProps = null;
|
||||
|
|
|
@ -150,8 +150,7 @@ public class SyncStrategy {
|
|||
private boolean syncWithReplicas(ZkController zkController, SolrCore core,
|
||||
ZkNodeProps props, String collection, String shardId, boolean peerSyncOnlyWithActive) {
|
||||
List<ZkCoreNodeProps> nodes = zkController.getZkStateReader()
|
||||
.getReplicaProps(collection, shardId,core.getCoreDescriptor().getCloudDescriptor().getCoreNodeName(),
|
||||
props.getStr(ZkStateReader.CORE_NAME_PROP));
|
||||
.getReplicaProps(collection, shardId,core.getCoreDescriptor().getCloudDescriptor().getCoreNodeName());
|
||||
|
||||
if (nodes == null) {
|
||||
// I have no replicas
|
||||
|
@ -178,8 +177,7 @@ public class SyncStrategy {
|
|||
List<ZkCoreNodeProps> nodes = zkController
|
||||
.getZkStateReader()
|
||||
.getReplicaProps(collection, shardId,
|
||||
cd.getCloudDescriptor().getCoreNodeName(),
|
||||
leaderProps.getStr(ZkStateReader.CORE_NAME_PROP));
|
||||
cd.getCloudDescriptor().getCoreNodeName());
|
||||
if (nodes == null) {
|
||||
log.info(ZkCoreNodeProps.getCoreUrl(leaderProps) + " has no replicas");
|
||||
return;
|
||||
|
|
|
@ -623,8 +623,7 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {
|
|||
|
||||
forwardToLeader = false;
|
||||
List<ZkCoreNodeProps> replicaProps = zkController.getZkStateReader()
|
||||
.getReplicaProps(collection, shardId, leaderReplica.getName(),
|
||||
req.getCore().getName());
|
||||
.getReplicaProps(collection, shardId, leaderReplica.getName());
|
||||
if (replicaProps != null) {
|
||||
nodes = new ArrayList<>(replicaProps.size());
|
||||
for (ZkCoreNodeProps props : replicaProps) {
|
||||
|
|
Loading…
Reference in New Issue