-
Notifications
You must be signed in to change notification settings - Fork 35
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
Integrate local metadata store into the Node #1307
Conversation
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. |
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.
Good to go, I'd be interested if we can drop the dependency on tokio-retry, but approving to unblock.
let (wipe_meta, wipe_worker, wipe_local_loglet, wipe_local_metadata_store) = match mode { | ||
Some(WipeMode::Worker) => (false, true, true, false), | ||
Some(WipeMode::Meta) => (true, false, false, false), | ||
Some(WipeMode::LocalLoglet) => (false, false, true, false), | ||
Some(WipeMode::LocalMetadataStore) => (false, false, false, true), | ||
Some(WipeMode::All) => (true, true, true, true), | ||
None => (false, false, false, false), |
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.
lol 🤣
9f19589
to
d39d0c9
Compare
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.
d39d0c9
to
56b4bb9
Compare
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 #1296.