You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2023/07/19 05:44:15 UTC

[solr] branch branch_9x updated: Avoid creating a replica as a part of collection creation

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

noble pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new 66e31458dc2 Avoid creating a replica as a part of collection creation
66e31458dc2 is described below

commit 66e31458dc2cc362b229e70dd13c743446ceb9ba
Author: Noble Paul <no...@gmail.com>
AuthorDate: Wed Jul 19 15:42:44 2023 +1000

    Avoid creating a replica as a part of collection creation
---
 .../core/src/java/org/apache/solr/servlet/CoordinatorHttpSolrCall.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/servlet/CoordinatorHttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/CoordinatorHttpSolrCall.java
index cef7270d943..9380b9835fa 100644
--- a/solr/core/src/java/org/apache/solr/servlet/CoordinatorHttpSolrCall.java
+++ b/solr/core/src/java/org/apache/solr/servlet/CoordinatorHttpSolrCall.java
@@ -250,8 +250,7 @@ public class CoordinatorHttpSolrCall extends HttpSolrCall {
     SolrQueryResponse rsp = new SolrQueryResponse();
     try {
       CollectionAdminRequest.Create collCreationRequest =
-          CollectionAdminRequest.createCollection(syntheticCollectionName, confName, 1, 1)
-              .setCreateNodeSet(cores.getZkController().getNodeName());
+          CollectionAdminRequest.createCollection(syntheticCollectionName, confName, 1,0);
       collCreationRequest.setWaitForFinalState(true);
       SolrParams params = collCreationRequest.getParams();
       if (log.isInfoEnabled()) {