SOLR-9391: LBHttpSolrClient.request now correctly returns Rsp.server when previously skipped servers were successfully tried.

This commit is contained in:
Christine Poerschke 2016-08-19 10:01:45 +01:00
parent bbd1efe5d8
commit 250a867de2
2 changed files with 4 additions and 1 deletions

View File

@ -218,6 +218,9 @@ Bug Fixes
* SOLR-9032: Admin UI now correctly implements Create Alias command (Upayavira, Alexandre Rafalovitch)
* SOLR-9391: LBHttpSolrClient.request now correctly returns Rsp.server when
previously skipped servers were successfully tried. (Christine Poerschke)
Optimizations
----------------------

View File

@ -358,7 +358,6 @@ public class LBHttpSolrClient extends SolrClient {
}
continue;
}
rsp.server = serverStr;
try {
MDC.put("LBHttpSolrClient.url", serverStr);
HttpSolrClient client = makeSolrClient(serverStr);
@ -410,6 +409,7 @@ public class LBHttpSolrClient extends SolrClient {
boolean isZombie, String zombieKey) throws SolrServerException, IOException {
Exception ex = null;
try {
rsp.server = client.getBaseURL();
rsp.rsp = client.request(req.getRequest(), (String) null);
if (isZombie) {
zombieServers.remove(zombieKey);