SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes

This commit is contained in:
Cao Manh Dat 2019-05-07 09:40:45 +01:00
parent b2eebf0793
commit de5f3d76ed
2 changed files with 4 additions and 0 deletions
solr
CHANGES.txt
solrj/src/java/org/apache/solr/client/solrj/impl

View File

@ -260,6 +260,8 @@ Bug Fixes
* SOLR-13318: Fix ClassCastException in SolrJ JsonFaceting classes (Munendra S N via Jason Gerlowski)
* SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes (Cao Manh Dat)
Improvements
----------------------

View File

@ -199,6 +199,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
while (cnt++ < 3) {
try {
rsp = ctx.invoke(solrNode, CommonParams.METRICS_PATH, params);
break;
} catch (SolrException | SolrServerException | IOException e) {
boolean hasCauseIOException = false;
Throwable cause = e;
@ -305,6 +306,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
while (cnt++ < retries) {
try {
rsp = snitchContext.invoke(solrNode, CommonParams.METRICS_PATH, params);
break;
} catch (SolrException | SolrServerException | IOException e) {
if (e instanceof SolrServerException) {