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/04/09 21:15:15 UTC
lucene-solr:branch_6x: SOLR-10429: UpdateRequest#getRoutes()should
copy the response parser
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x dfa3b45a1 -> 88c81f5f9
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/88c81f5f
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/88c81f5f
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/88c81f5f
Branch: refs/heads/branch_6x
Commit: 88c81f5f974a8133cce3722bd59dd84edea84345
Parents: dfa3b45
Author: Noble Paul <no...@apache.org>
Authored: Mon Apr 10 06:43:27 2017 +0930
Committer: Noble Paul <no...@apache.org>
Committed: Mon Apr 10 06:44:43 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/88c81f5f/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index e4b53fd..8eeccfe 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -129,6 +129,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/88c81f5f/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);
}