You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ep...@apache.org on 2021/02/20 15:49:29 UTC

[lucene-solr] branch master updated: SOLR-15162: Add some parameters to make MODIFYCOLLECTION v1 and v2 more similar. (#2402)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2f0d191  SOLR-15162: Add some parameters to make MODIFYCOLLECTION v1 and v2 more similar.    (#2402)
2f0d191 is described below

commit 2f0d191452b9a02dcccd60cf551b450801668203
Author: Eric Pugh <ep...@opensourceconnections.com>
AuthorDate: Sat Feb 20 10:49:09 2021 -0500

    SOLR-15162: Add some parameters to make MODIFYCOLLECTION v1 and v2 more similar.    (#2402)
    
    * expose readOnly parameter to v2 of modifycollection.
    
    
    Co-authored-by: epugh@opensourceconnections.com <>
---
 solr/CHANGES.txt                                                      | 2 ++
 .../src/resources/apispec/collections.collection.Commands.modify.json | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 557e770..1e898e7 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -215,6 +215,8 @@ Bug Fixes
 * SOLR-14546: Fix for a relatively hard to hit issue in OverseerTaskProcessor that could lead to out of order execution
   of Collection API tasks competing for a lock (Ilan Ginzburg).
 
+* SOLR-15162: Allow readOnly parameter to be used with v2 modify collection command (Eric Pugh) 
+
 ==================  8.9.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json b/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
index b168e34..a3e00bb 100644
--- a/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
+++ b/solr/solrj/src/resources/apispec/collections.collection.Commands.modify.json
@@ -6,6 +6,10 @@
     "replicationFactor": {
       "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."
+    },
+    "readOnly": {
+      "type": "boolean",
+      "description": "Setting the readOnly attribute to true puts the collection in read-only mode, in which any index update requests are rejected. Other collection-level actions (e.g., adding / removing / moving replicas) are still available in this mode."
     }
 
   }