You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/09/08 13:14:25 UTC

[GitHub] [ignite-3] kgusakov commented on pull request #321: IGNITE-15288 Fully implement RaftGroupService

kgusakov commented on pull request #321:
URL: https://github.com/apache/ignite-3/pull/321#issuecomment-915228311


   > Can anybody explain to me next.
   > We have Peer and PeerId entities and have methods to convert one to another. Seems, they are interchangable.
   > Why some components holds collections Peer (or PeerIs) and then convert whole collection to PeerId (or Peer) in the component methods?
   > This looks insane.
   > 
   >     1. PeerId fromPeer(Peer p) - this is static method
   > 
   >     2. Peer peerFromPeerId(PeerId peer)  - this is private, but can be static as well, because no context is needed for conversion.
   
   @AMashenkov It's just a problem of the current solution, where our Peer is a duplicate of PeerId from raft, because we can't use PeerId in raft-client module (raft-server depends on raft-client, but not visa versa).
   
   This issue should be fixed I think, but under another ticket. I will create TODO and appropriate jira issue - WDYT?
   
   What about 2 - will be fixed here.


-- 
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: notifications-unsubscribe@ignite.apache.org

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