SOLR-14317: HttpClusterStateProvider throws exception when only one node down (Closes #1342)

This commit is contained in:
Ishan Chattopadhyaya 2020-03-29 07:20:32 +05:30
parent 9de6811706
commit 782ded2d7a
2 changed files with 3 additions and 1 deletions

View File

@ -96,6 +96,8 @@ Bug Fixes
* SOLR-14302: Ensure Solr always includes the stacktrace for exceptions by using '-OmitStackTraceInFastThrow' * SOLR-14302: Ensure Solr always includes the stacktrace for exceptions by using '-OmitStackTraceInFastThrow'
(hossman) (hossman)
* SOLR-14317: HttpClusterStateProvider throws exception when only one node down. (Lyle Wang via Ishan Chattopadhyaya)
Other Changes Other Changes
--------------------- ---------------------
* SOLR-14197: SolrResourceLoader: marked many methods as deprecated, and in some cases rerouted exiting logic to avoid * SOLR-14197: SolrResourceLoader: marked many methods as deprecated, and in some cases rerouted exiting logic to avoid

View File

@ -63,7 +63,7 @@ public abstract class BaseHttpClusterStateProvider implements ClusterStateProvid
this.liveNodes = fetchLiveNodes(initialClient); this.liveNodes = fetchLiveNodes(initialClient);
liveNodesTimestamp = System.nanoTime(); liveNodesTimestamp = System.nanoTime();
break; break;
} catch (IOException e) { } catch (SolrServerException | IOException e) {
log.warn("Attempt to fetch cluster state from {} failed.", solrUrl, e); log.warn("Attempt to fetch cluster state from {} failed.", solrUrl, e);
} }
} }