You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2022/01/18 05:19:57 UTC

[GitHub] [ratis] szetszwo commented on a change in pull request #577: RATIS-1487. Implement pause election in server

szetszwo commented on a change in pull request #577:
URL: https://github.com/apache/ratis/pull/577#discussion_r786421830



##########
File path: ratis-server/src/main/java/org/apache/ratis/server/impl/RoleInfo.java
##########
@@ -44,8 +45,10 @@
   private final AtomicReference<FollowerState> followerState = new AtomicReference<>();
   /** Used when the peer is candidate, to request votes from other peers */
   private final AtomicReference<LeaderElection> leaderElection = new AtomicReference<>();
+  private final AtomicBoolean pauseLeaderElection = new AtomicBoolean(false);
 
   private final AtomicReference<Timestamp> transitionTime;
+  private final AtomicBoolean pauseElection = new AtomicBoolean(false);

Review comment:
       This should be removed.




-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org