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
|
@ -260,6 +260,8 @@ Bug Fixes
|
||||||
|
|
||||||
* SOLR-13318: Fix ClassCastException in SolrJ JsonFaceting classes (Munendra S N via Jason Gerlowski)
|
* 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
|
Improvements
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -199,6 +199,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
|
||||||
while (cnt++ < 3) {
|
while (cnt++ < 3) {
|
||||||
try {
|
try {
|
||||||
rsp = ctx.invoke(solrNode, CommonParams.METRICS_PATH, params);
|
rsp = ctx.invoke(solrNode, CommonParams.METRICS_PATH, params);
|
||||||
|
break;
|
||||||
} catch (SolrException | SolrServerException | IOException e) {
|
} catch (SolrException | SolrServerException | IOException e) {
|
||||||
boolean hasCauseIOException = false;
|
boolean hasCauseIOException = false;
|
||||||
Throwable cause = e;
|
Throwable cause = e;
|
||||||
|
@ -305,6 +306,7 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter
|
||||||
while (cnt++ < retries) {
|
while (cnt++ < retries) {
|
||||||
try {
|
try {
|
||||||
rsp = snitchContext.invoke(solrNode, CommonParams.METRICS_PATH, params);
|
rsp = snitchContext.invoke(solrNode, CommonParams.METRICS_PATH, params);
|
||||||
|
break;
|
||||||
} catch (SolrException | SolrServerException | IOException e) {
|
} catch (SolrException | SolrServerException | IOException e) {
|
||||||
if (e instanceof SolrServerException) {
|
if (e instanceof SolrServerException) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue