lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ans...@apache.org
Subject lucene-solr:branch_7x: SOLR-11608: Correctly parse the new core-name in the V2 core rename API.
Date Wed, 29 Nov 2017 22:44:31 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 276e2e596 -> c05b1f550


SOLR-11608: Correctly parse the new core-name in the V2 core rename API.


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

Branch: refs/heads/branch_7x
Commit: c05b1f550820ef2121c1911e7a2e6512226408cd
Parents: 276e2e5
Author: Anshum Gupta <anshum@apache.org>
Authored: Wed Nov 29 13:16:56 2017 -0800
Committer: Anshum Gupta <anshum@apache.org>
Committed: Wed Nov 29 13:39:04 2017 -0800

----------------------------------------------------------------------
 solr/CHANGES.txt                                                  | 3 +++
 .../src/test/org/apache/solr/handler/admin/TestCoreAdminApis.java | 2 +-
 .../java/org/apache/solr/client/solrj/request/CoreApiMapping.java | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c05b1f55/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 27d091c..e471c2c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -129,6 +129,9 @@ Bug Fixes
   admin UI dashboard would not display any commandline arguments.
   (Webster Homer via Shawn Heisey)
 
+* SOLR-11608: Correctly parse the new core-name in the V2 core rename API.
+  (Jason Gerlowski via Anshum Gupta)
+
 Optimizations
 ----------------------
 * SOLR-11285: Refactor autoscaling framework to avoid direct references to Zookeeper and
Solr

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c05b1f55/solr/core/src/test/org/apache/solr/handler/admin/TestCoreAdminApis.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/handler/admin/TestCoreAdminApis.java b/solr/core/src/test/org/apache/solr/handler/admin/TestCoreAdminApis.java
index dcaa64a..2919b1c 100644
--- a/solr/core/src/test/org/apache/solr/handler/admin/TestCoreAdminApis.java
+++ b/solr/core/src/test/org/apache/solr/handler/admin/TestCoreAdminApis.java
@@ -58,7 +58,7 @@ public class TestCoreAdminApis extends SolrTestCaseJ4 {
 
     TestCollectionAPIs.makeCall(apiBag, "/cores/core1", SolrRequest.METHOD.POST,
         "{rename:{to: core2}}", mockCC);
-    params = calls.get("swap");
+    params = calls.get("rename");
     assertEquals("core1" ,params[0]);
     assertEquals("core2" ,params[1]);
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c05b1f55/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreApiMapping.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreApiMapping.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreApiMapping.java
index febd384..b5ce920 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreApiMapping.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/CoreApiMapping.java
@@ -45,7 +45,7 @@ public class CoreApiMapping {
     RELOAD(PER_CORE_COMMANDS, POST, CoreAdminAction.RELOAD, "reload", null),
     STATUS(CORES_STATUS, GET, CoreAdminAction.STATUS, "status", null),
     SWAP(PER_CORE_COMMANDS, POST, CoreAdminAction.SWAP, "swap", Utils.makeMap("other", "with")),
-    RENAME(PER_CORE_COMMANDS, POST, CoreAdminAction.RENAME, "rename", null),
+    RENAME(PER_CORE_COMMANDS, POST, CoreAdminAction.RENAME, "rename", Utils.makeMap("other",
"to")),
     MERGEINDEXES(PER_CORE_COMMANDS, POST, CoreAdminAction.MERGEINDEXES, "merge-indexes",
null),
     SPLIT(PER_CORE_COMMANDS, POST, CoreAdminAction.SPLIT, "split", Utils.makeMap("split.key",
"splitKey")),
     PREPRECOVERY(PER_CORE_COMMANDS, POST, CoreAdminAction.PREPRECOVERY, "prep-recovery",
null),


Mime
View raw message