You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2019/12/17 04:11:38 UTC

[lucene-solr] 02/02: fix DUP

This is an automated email from the ASF dual-hosted git repository.

noble pushed a commit to branch jira/solr14089
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit b42cb55a3867d78e60e1c9998449eecc11af9594
Author: noble <no...@apache.org>
AuthorDate: Tue Dec 17 15:11:07 2019 +1100

    fix DUP
---
 .../org/apache/solr/update/processor/DistributedZkUpdateProcessor.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/update/processor/DistributedZkUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/DistributedZkUpdateProcessor.java
index 40bad52..ffa0a23 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/DistributedZkUpdateProcessor.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/DistributedZkUpdateProcessor.java
@@ -926,7 +926,7 @@ public class DistributedZkUpdateProcessor extends DistributedUpdateProcessor {
                       throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
                           "No active slices serving " + id + " found for target collection: " + rule.getTargetCollectionName());
                     }
-                    Replica targetLeader = targetColl.getLeader(activeSlices.iterator().next().getName());
+                    Replica targetLeader = req.getCore().getShardStateProvider().getLeader(activeSlices.iterator().next());
                     nodes = new ArrayList<>(1);
                     nodes.add(new SolrCmdDistributor.StdNode(new ZkCoreNodeProps(targetLeader)));
                     break;