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 2017/10/27 12:50:10 UTC

[1/2] lucene-solr:branch_7x: SOLR-11500: MOVEREPLICA api missing in V2

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 615ac17a4 -> d4d4df2ad


SOLR-11500: MOVEREPLICA api missing in V2


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c4e08497
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c4e08497
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c4e08497

Branch: refs/heads/branch_7x
Commit: c4e08497e0a0cbfe76264e7d562152e22b73c7ea
Parents: 615ac17
Author: Noble Paul <no...@apache.org>
Authored: Tue Oct 17 23:34:12 2017 +1030
Committer: Noble Paul <no...@apache.org>
Committed: Fri Oct 27 23:19:37 2017 +1030

----------------------------------------------------------------------
 solr/solr-ref-guide/src/collections-api.adoc    |  2 +-
 .../collections.collection.Commands.json        | 23 ++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c4e08497/solr/solr-ref-guide/src/collections-api.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/collections-api.adoc b/solr/solr-ref-guide/src/collections-api.adoc
index cda1c56..1821d4d 100644
--- a/solr/solr-ref-guide/src/collections-api.adoc
+++ b/solr/solr-ref-guide/src/collections-api.adoc
@@ -1887,7 +1887,7 @@ Time in seconds to wait until new replicas are created, and until leader replica
 ====
 This operation does not hold necessary locks on the replicas that belong to on the source node. So don't perform other collection operations in this period.
 ====
-
+[[movereplica]]
 == MOVEREPLICA: Move a Replica to a New Node
 
 This command moves a replica from one node to a new node. In case of shared filesystems the `dataDir` will be reused.

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c4e08497/solr/solrj/src/resources/apispec/collections.collection.Commands.json
----------------------------------------------------------------------
diff --git a/solr/solrj/src/resources/apispec/collections.collection.Commands.json b/solr/solrj/src/resources/apispec/collections.collection.Commands.json
index c2314ae..dfae2f2 100644
--- a/solr/solrj/src/resources/apispec/collections.collection.Commands.json
+++ b/solr/solrj/src/resources/apispec/collections.collection.Commands.json
@@ -17,6 +17,29 @@
     "reload": {
       "#include": "collections.collection.Commands.reload"
     },
+    "move-replica": {
+      "type": "object",
+      "documentation": "https://lucene.apache.org/solr/guide/collections-api.html#movereplica",
+      "description": "This command moves a replica from one node to a new node. In case of shared filesystems the `dataDir` will be reused.",
+      "properties": {
+        "replica": {
+          "type": "string",
+          "description": "The name of the replica"
+        },
+        "shard": {
+          "type": "string",
+          "description": "The name of the shard"
+        },
+        "sourceNode": {
+          "type": "string",
+          "description": "The name of the node that contains the replica"
+        },
+        "targetNode": {
+          "type": "string",
+          "description": "The name of the destination node. This parameter is required"
+        }
+      }
+    },
     "migrate-docs":{
       "type":"object",
       "documentation":"https://lucene.apache.org/solr/guide/collections-api.html#migrate",


[2/2] lucene-solr:branch_7x: SOLR-11500: MOVEREPLICA api missing in V2

Posted by no...@apache.org.
SOLR-11500: MOVEREPLICA api missing in V2


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d4d4df2a
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d4d4df2a
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d4d4df2a

Branch: refs/heads/branch_7x
Commit: d4d4df2ad7a4625ffba2a40a3f968098ddaad56a
Parents: c4e0849
Author: Noble Paul <no...@apache.org>
Authored: Mon Oct 23 15:34:17 2017 +1030
Committer: Noble Paul <no...@apache.org>
Committed: Fri Oct 27 23:19:52 2017 +1030

----------------------------------------------------------------------
 .../org/apache/solr/client/solrj/request/CollectionApiMapping.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d4d4df2a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionApiMapping.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionApiMapping.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionApiMapping.java
index b257731..b154b62 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionApiMapping.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionApiMapping.java
@@ -102,6 +102,8 @@ public class CollectionApiMapping {
             "target.collection", "target",
             "forward.timeout", "forwardTimeout"
         )),
+    MOVE_REPLICA(PER_COLLECTION,
+        POST, MOVEREPLICA, "move-replica", null),
     REBALANCE_LEADERS(PER_COLLECTION,
         POST,
         REBALANCELEADERS,