mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 20:15:18 +00:00
SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes
This commit is contained in:
parent
6797274581
commit
79fb96854c
@ -228,6 +228,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…
x
Reference in New Issue
Block a user