amaliujia commented on a change in pull request #188:
URL: https://github.com/apache/incubator-ratis/pull/188#discussion_r493860728
##########
File path: ratis-server/src/test/java/org/apache/ratis/RaftBasicTests.java
##########
@@ -337,6 +337,22 @@ public void testWithLoad() throws Exception {
runWithNewCluster(NUM_SERVERS, cluster -> testWithLoad(10, 300, false,
cluster, LOG));
}
+ @Test
+ public void testPauseFollowers() throws Exception {
+ runWithNewCluster(NUM_SERVERS, this::runTestPauseFollowers);
+ }
+
+ void runTestPauseFollowers(CLUSTER cluster) throws Exception {
Review comment:
Sounds good. Have updated this test to also tes resume. Introduced a
thread to send messages by a client meanwhile pause/resume a follower to verify
that pause/resume works well.
----------------------------------------------------------------
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]