-
Notifications
You must be signed in to change notification settings - Fork 68
Add membership id for cluster membership #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
8812ce6 to
af8b684
Compare
Signed-off-by: Somtochi Onyekwere <[email protected]>
| Command::Cluster(ClusterCommand::MembershipStates { local }) => { | ||
| info_log(&mut stream, "gathering membership state").await; | ||
|
|
||
| if local { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so generally don't dump all peers we how about but only the ones we are connected to directly.
| _ = timer.as_mut() => {} | ||
| } | ||
|
|
||
| // TODO: find way to find and filter out addrs with a different membership id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So different peers which share a IP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we keep sending out Announce messages even to peers that we learn have a different membership id. We could pass this information around, and exclude the peer's ip when we want to announce. But it is mostly an optimization so I left it out of this pr
gorbak25
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Mostly nits. There is no test for whether peers with different member_id ignore each other.
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Signed-off-by: Somtochi Onyekwere <[email protected]>
Actorstruct has been updated with a new fieldmember_id.