Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-10411: v2 Collection API modify command specification's replicationFactor property is incorrectly typed as string, should be integer

Cao Manh Dat904df0eb619d
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 19b3a251ed4..5f6f4829271 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -102,6 +102,9 @@ Bug Fixes
* SOLR-10408: v2 API introspect should return useful message for non-existent command (Cao Manh Dat)
+* SOLR-10411: v2 Collection API "modify" command specification's replicationFactor property is incorrectly typed as string,
+ should be integer (Cao Manh Dat)
+
Optimizations
----------------------
diff --git a/solr/core/src/resources/apispec/collections.collection.Commands.modify.json b/solr/core/src/resources/apispec/collections.collection.Commands.modify.json
index 02553291ded..d7d0f101709 100644
--- a/solr/core/src/resources/apispec/collections.collection.Commands.modify.json
+++ b/solr/core/src/resources/apispec/collections.collection.Commands.modify.json
@@ -24,7 +24,7 @@
"description": "When set to true, enables auto addition of replicas on shared file systems (such as HDFS). See https://cwiki.apache.org/confluence/display/solr/Running+Solr+on+HDFS for more details on settings and overrides."
},
"replicationFactor": {
- "type": "string",
+ "type": "integer",
"description": "The number of replicas to be created for each shard. Replicas are physical copies of each shard, acting as failover for the shard. Note that changing this value on an existing collection does not automatically add more replicas to the collection. However, it will allow add-replica commands to succeed."
},
"maxShardsPerNode": {