You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2019/05/07 09:28:06 UTC
[lucene-solr] branch branch_7_7 updated: SOLR-13449:
SolrClientNodeStateProvider always retries on requesting metrics from other
nodes
This is an automated email from the ASF dual-hosted git repository.
datcm pushed a commit to branch branch_7_7
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_7_7 by this push:
new 780e711 SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes
780e711 is described below
commit 780e7115316cfef0c4e09cc009f6ad4c3679b0ca
Author: Cao Manh Dat <da...@apache.org>
AuthorDate: Tue May 7 09:40:45 2019 +0100
SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes
---
solr/CHANGES.txt | 2 ++
.../org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java | 2 ++
2 files changed, 4 insertions(+)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index ac66ec4..3ec0371 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -82,6 +82,8 @@ Bug fixes
* SOLR-12833: Avoid unnecessary memory cost when DistributedUpdateProcessor timed-out lock is not used. (ab)
+* SOLR-13449: SolrClientNodeStateProvider always retries on requesting metrics from other nodes (Cao Manh Dat)
+
================== 7.7.1 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
index f164484..a1f507c 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java
@@ -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) {