You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Noble Paul (Jira)" <ji...@apache.org> on 2019/12/11 23:34:00 UTC

[jira] [Assigned] (SOLR-14003) Refactor code to avoid reading state of replica from the data object

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

Noble Paul reassigned SOLR-14003:
---------------------------------

    Assignee: Noble Paul

> Refactor code to avoid reading state of replica from the data object  
> ----------------------------------------------------------------------
>
>                 Key: SOLR-14003
>                 URL: https://issues.apache.org/jira/browse/SOLR-14003
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Deprecate
>  * {{Replica#getState()}}
>  * {{Replica#isActive()}}
> Use an implementation of {{ShardStateProvider}} to fetch the state
> {code:java}
> /**An implementation that fetches the state of each replica in a collection
>  * and it also provides the leader of shards
>  *
>  */
> public interface ShardStateProvider {
>   Replica.State getState(Replica replica);
> /**get the leader
> */
>   Replica getLeader(Slice slice);
>  /** Wait if there is no leader available*/
>   Replica getLeader(Slice slice, int waitTime);
>   boolean isActive(Replica replica);
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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