You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2020/12/19 08:59:29 UTC

[GitHub] [incubator-ratis] runzhiwang commented on a change in pull request #364: [WIP]RATIS-1248. Support network topology

runzhiwang commented on a change in pull request #364:
URL: https://github.com/apache/incubator-ratis/pull/364#discussion_r546213601



##########
File path: ratis-netty/src/main/java/org/apache/ratis/netty/server/DataStreamManagement.java
##########
@@ -231,23 +232,48 @@ StreamInfo remove(Key key) {
     return f;
   }
 
+
+  private IdentityHashMap<RaftPeer, RaftPeer> getRouteTable(RaftClientRequest request)

Review comment:
       IdentityHashMap allows duplicated key, such as primary -> peer1, primary -> peer2, we can put them in IdentityHashMap, but can not put them in a map which do not allow duplicated key.




----------------------------------------------------------------
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:
users@infra.apache.org