lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject lucene-solr:master: SOLR-10429: UpdateRequest#getRoutes()should copy the response parser
Date Sun, 09 Apr 2017 21:13:37 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master d671273bc -> 550a32495


SOLR-10429: UpdateRequest#getRoutes()should copy the response parser


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

Branch: refs/heads/master
Commit: 550a32495257634859ac6eae3858cbce71be06f2
Parents: d671273
Author: Noble Paul <noble@apache.org>
Authored: Mon Apr 10 06:43:27 2017 +0930
Committer: Noble Paul <noble@apache.org>
Committed: Mon Apr 10 06:43:27 2017 +0930

----------------------------------------------------------------------
 solr/CHANGES.txt                                                  | 2 ++
 .../java/org/apache/solr/client/solrj/request/UpdateRequest.java  | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/550a3249/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 62e9189..ec25b90 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -207,6 +207,8 @@ Other Changes
 * SOLR-10440: LBHttpSolrClient.doRequest is now always wrapped in a Mapped Diagnostic Context
(MDC).
   (Christine Poerschke)
 
+* SOLR-10429: UpdateRequest#getRoutes()should copy the response parser (noble)
+
 ==================  6.5.1 ==================
 
 Bug Fixes

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/550a3249/solr/solrj/src/java/org/apache/solr/client/solrj/request/UpdateRequest.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/request/UpdateRequest.java b/solr/solrj/src/java/org/apache/solr/client/solrj/request/UpdateRequest.java
index 142710a..0d9867c 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/request/UpdateRequest.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/request/UpdateRequest.java
@@ -269,7 +269,7 @@ public class UpdateRequest extends AbstractUpdateRequest {
           return null;
         }
         String leaderUrl = urls.get(0);
-        LBHttpSolrClient.Req request = (LBHttpSolrClient.Req) routes
+        LBHttpSolrClient.Req request = routes
             .get(leaderUrl);
         if (request == null) {
           UpdateRequest updateRequest = new UpdateRequest();
@@ -278,6 +278,7 @@ public class UpdateRequest extends AbstractUpdateRequest {
           updateRequest.setParams(params);
           updateRequest.setPath(getPath());
           updateRequest.setBasicAuthCredentials(getBasicAuthUser(), getBasicAuthPassword());
+          updateRequest.setResponseParser(getResponseParser());
           request = new LBHttpSolrClient.Req(updateRequest, urls);
           routes.put(leaderUrl, request);
         }


Mime
View raw message