You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Jing Zhao (JIRA)" <ji...@apache.org> on 2017/07/11 19:55:00 UTC

[jira] [Commented] (RATIS-93) Filter peers from the iteration before random selection

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

Jing Zhao commented on RATIS-93:
--------------------------------

+1

> Filter peers from the iteration before random selection
> -------------------------------------------------------
>
>                 Key: RATIS-93
>                 URL: https://issues.apache.org/jira/browse/RATIS-93
>             Project: Ratis
>          Issue Type: Improvement
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>            Priority: Minor
>         Attachments: r93_20170710.patch
>
>
> When randomly selecting a peer, we first copy the peer list and then select a peer in a loop indefinitely until a new peer is found.
> We could first filter the peers when copying the list.  Then, we can eliminate the loop.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)