[ https://issues.apache.org/jira/browse/RATIS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze resolved RATIS-93. -------------------------------------- Resolution: Fixed Fix Version/s: 0.2.0-alpha Thanks Jing for reviewing the patch. I have committed this. > 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 > Fix For: 0.2.0-alpha > > 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)