You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Timothy Potter (JIRA)" <ji...@apache.org> on 2014/09/05 22:04:28 UTC
[jira] [Updated] (SOLR-6481) CLUSTERSTATUS action should consult
/live_nodes when reporting the state of a replica
[ https://issues.apache.org/jira/browse/SOLR-6481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Potter updated SOLR-6481:
---------------------------------
Attachment: SOLR-6481.patch
Here's a patch that cross-checks the replica state with live nodes. Since the code just uses the /clusterstate.json JSON map directly, I took the approach of walking the tree to check replica status.
> CLUSTERSTATUS action should consult /live_nodes when reporting the state of a replica
> -------------------------------------------------------------------------------------
>
> Key: SOLR-6481
> URL: https://issues.apache.org/jira/browse/SOLR-6481
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Reporter: Timothy Potter
> Assignee: Timothy Potter
> Attachments: SOLR-6481.patch
>
>
> CLUSTERSTATUS action reports the state of replicas but it doesn't check /live_nodes, which means it might show a replica as "active" but the node is down, so the real state is "down".
> Ideally, we need a helper method that gets replica status that consults live nodes so this error doesn't keep cropping up all over the code base.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org