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/03/17 11:28:00 UTC

[GitHub] [ratis] codings-dan commented on a change in pull request #622: RATIS-1551. Suppport listener in setConfiguration

codings-dan commented on a change in pull request #622:
URL: https://github.com/apache/ratis/pull/622#discussion_r829017695



##########
File path: ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderStateImpl.java
##########
@@ -235,6 +235,7 @@ boolean removeAll(Collection<LogAppender> c) {
   private volatile ConfigurationStagingState stagingState;
   private List<List<RaftPeerId>> voterLists;
   private final Map<RaftPeerId, FollowerInfo> peerIdFollowerInfoMap = new ConcurrentHashMap<>();
+  private final Map<RaftPeerId, FollowerInfo> peerIdListenerInfoMap = new ConcurrentHashMap<>();

Review comment:
       Yean,  adding a data structure is really hard to keep it correct.




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