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/03/07 04:49:42 UTC

[jira] [Updated] (SOLR-5823) Add utility function for internal code to know if it is currently the overseer

     [ https://issues.apache.org/jira/browse/SOLR-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Potter updated SOLR-5823:
---------------------------------

    Attachment: SOLR-5823.patch

Here's a quick patch with a happy path assert added to the ZkControllerTest.
This solution currently is doing some parsing of the znode data retrieved from ZK to isolate the node name. Looks like the ZooKeeper folks are planning to introduce a Path class to help with parsing in 3.5 (see: https://issues.apache.org/jira/browse/ZOOKEEPER-849) but not available yet so I'm just parsing out the node name from the znode sequence id.

> Add utility function for internal code to know if it is currently the overseer
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-5823
>                 URL: https://issues.apache.org/jira/browse/SOLR-5823
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>         Attachments: SOLR-5823.patch
>
>
> It would be useful if there was some Overseer equivalent to CloudDescriptor.isLeader() that plugins running in solr could use to know "At this moment, am i the leader?" 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org