[ 
https://issues.apache.org/jira/browse/SOLR-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923934#comment-13923934
 ] 

Mark Miller commented on SOLR-5823:
-----------------------------------

Cool. Couple comments:


bq. Looks like the ZooKeeper folks are planning to introduce a Path class to 
help with parsing in 3.5 

Seems we should pull it out into it's own method or utility static in the 
meantime?

I'd also add a warning about using it to the javadoc - most of this type of 
info is essentially free because it's in the cluster state, but this calls ZK 
and we try and do that sparingly.

I'm still not sure why this can't just be a thread in the Overseer class though 
and avoid this call altogether? That already would fail over as you need right?


> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to