mirror of https://github.com/apache/lucene.git
SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes
This commit is contained in:
parent
b2eebf0793
commit
de5f3d76ed
solr
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue