[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to