Skip to content

Conversation

tillrohrmann
Copy link
Contributor

@tillrohrmann tillrohrmann commented Jul 29, 2025

This commit ensures that the latest NodesConfiguration is known to the MetadataManager when exiting the
Member role. This ensures that the Standby role works on the latest NodesConfiguration.

Only the last commit is relevant. The first commit adds a little bit more logging output and the second commit splits the server.rs into smaller files.

This commit splits the very large server.rs file into standby.rs and member.rs
which live in the server module.
… known to MetadataManager

This commit ensures that the latest NodesConfiguration is known to the MetadataManager when exiting the
Member role. This ensures that the Standby role works on the latest NodesConfiguration.
@tillrohrmann tillrohrmann force-pushed the improve-replicated-metadata-server-logging branch from 526948b to e67c936 Compare July 29, 2025 17:02
@tillrohrmann tillrohrmann changed the title [REMOVE] Add debug logging for rejoining metadata server [Replicated metadata server] Ensure that latest NodesConfiguration is… e67c936 … known to MetadataManage Jul 29, 2025
@tillrohrmann tillrohrmann requested a review from jackkleeman July 29, 2025 17:02
@tillrohrmann tillrohrmann marked this pull request as ready for review July 29, 2025 17:03
Copy link
Contributor

@jackkleeman jackkleeman left a comment

Choose a reason for hiding this comment

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

makes sense to me!

@tillrohrmann
Copy link
Contributor Author

A slightly better, yet more involved change, would be to pass the NodesConfiguration version along to the leader when trying to join based on the MetadataServerState found in the NodesConfiguration. That way, leaders can filter out requests that might be based on outdated NodesConfiguration versions.

@AhmedSoliman AhmedSoliman self-requested a review July 29, 2025 18:32
@tillrohrmann tillrohrmann changed the title [Replicated metadata server] Ensure that latest NodesConfiguration is… e67c936 … known to MetadataManage [Replicated metadata server] Ensure that latest NodesConfiguration is known to MetadataManage Jul 29, 2025
@tillrohrmann tillrohrmann changed the title [Replicated metadata server] Ensure that latest NodesConfiguration is known to MetadataManage [Replicated metadata server] Ensure that latest NodesConfiguration is known to MetadataManager Jul 29, 2025
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.

+1 to merge.

@tillrohrmann tillrohrmann merged commit e67c936 into restatedev:main Jul 30, 2025
26 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2025
@tillrohrmann tillrohrmann deleted the improve-replicated-metadata-server-logging branch July 30, 2025 08:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants