Skip to content

Conversation

@somtochiama
Copy link
Contributor

@somtochiama somtochiama commented Oct 7, 2025

⚠️ This is a breaking change as bincode (the library for encoding foca data) doesn't support default fields and the Actor struct has been updated with a new field member_id.

@somtochiama somtochiama marked this pull request as ready for review October 20, 2025 13:33
Signed-off-by: Somtochi Onyekwere <[email protected]>
Command::Cluster(ClusterCommand::MembershipStates { local }) => {
info_log(&mut stream, "gathering membership state").await;

if local {
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@gorbak25 gorbak25 left a 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]>
@somtochiama somtochiama merged commit fc17c91 into main Oct 28, 2025
6 checks passed
@somtochiama somtochiama deleted the reject-non-members branch October 28, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants