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

Fetch or insert fixed partition table #1309

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

tillrohrmann
Copy link
Contributor

This commit tries to fetch the FixedPartitionTable from the metadata
store. If it is not present, then it will try to store an instance
of it.

This fixes #1308.

This PR is based on #1307.

@tillrohrmann
Copy link
Contributor Author

This PR needs restatedev/e2e#292 to make the e2e tests working because the e2e tests depend on the config schema which was changed with this PR.

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.

🥳

@tillrohrmann
Copy link
Contributor Author

Thanks for the quick review @AhmedSoliman :-)

With retry_if it is now possible to check the error and decide
whether to continue retrying or not.
This commit integrates the local metadata store into the Node.
It achieves it by introducing the MetadataStore role and requiring
that the bootstrap node runs it. The role is the first started role.
It runs the LocalMetadataStoreService. After starting the MetadataStore,
the node tries to upsert the new NodeConfig with which it announces its
NodeId, address and roles it runs.

This fixes restatedev#1296.
This commit delays the partition processor creation until the
Worker runs. That way, we can use the PartitionTable stored in
the MetadataManager.
This commit tries to fetch the FixedPartitionTable from the metadata
store. If it is not present, then it will try to store an instance
of it.

This fixes restatedev#1308.
@tillrohrmann tillrohrmann merged commit eb6259d into restatedev:main Mar 26, 2024
5 checks passed
@tillrohrmann tillrohrmann deleted the issues/1308 branch March 26, 2024 22:35
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.

Store PartitionTable in metadata store
2 participants