runzhiwang opened a new pull request #68: URL: https://github.com/apache/incubator-ratis/pull/68
**What's the problem ?**  **What's the reason ?** I think the author of following code want to try 10 seconds until `followerState.getLastAppliedIndex() >= leaderLastIndex`, but actually `JavaUtils.attemptRepeatedly` will not retry unless the statement throw exception as the image shows. ``` // make sure the restarted follower can catchup final ServerState followerState = cluster.getRaftServerImpl(followerId).getState(); JavaUtils.attemptRepeatedly(() -> followerState.getLastAppliedIndex() >= leaderLastIndex, 10, ONE_SECOND, "follower catchup", LOG); ```  **How to fix ?** I fix all the error use of JavaUtils.attemptRepeatedly to check boolean condition. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
