Skip to content
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

Sync nodes configuration if node from the future connects #1699

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

tillrohrmann
Copy link
Contributor

@tillrohrmann tillrohrmann commented Jul 7, 2024

This commit makes the server sync the nodes configuration if a remote
node from the future tries to connect to it.

This fixes #1696.

This PR is based on #1698.

Copy link
Contributor

@AhmedSoliman AhmedSoliman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

nodes_config = self.metadata.nodes_config_ref();

if let Err(e) = nodes_config.find_node_by_id(peer_node_id) {
info!("Could not find remote node {} after syncing nodes configuration. Local version '{}', remote version '{:?}'.", peer_node_id, nodes_config.version(), header.my_nodes_config_version.expect("must be present"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a warn instead?

This commit introduces the ControlProcessors command which allows an
external entity to instruct the PartitionProcessorManager to start
and stop PartitionProcessors.

This fixes restatedev#1695.
This commit makes the server sync the nodes configuration if a remote
node from the future tries to connect to it.

This fixes restatedev#1696.
@tillrohrmann tillrohrmann merged commit 2e1e0a2 into restatedev:main Jul 19, 2024
3 checks passed
@tillrohrmann tillrohrmann deleted the issues/1696 branch July 19, 2024 11:50
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.

Support accepting connection from newer nodes
2 participants