lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [34/50] lucene-solr:jira/solr-11458-2: SOLR-11608: Correctly parse the new core-name in the V2 core rename API.
Date Mon, 04 Dec 2017 17:49:18 GMT
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/ebdaa441
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ebdaa441
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ebdaa441

Branch: refs/heads/jira/solr-11458-2
Commit: ebdaa44182cf4e017efc418134821291dc40ea46
Parents: 75d11ea
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:17:17 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/ebdaa441/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 1358212..737ef60 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -150,6 +150,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/ebdaa441/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/ebdaa441/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