You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2017/07/11 00:10:00 UTC
[jira] [Updated] (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:all-tabpanel ]
Tsz Wo Nicholas Sze updated RATIS-93:
-------------------------------------
Attachment: r93_20170710.patch
r93_20170710.patch: 1st patch.
> 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)