restate
restate copied to clipboard
Use global metadata wrapper when writing metadata for provisioning the cluster
When provisioning the cluster we are writing some metadata to the metadata store. In case that the write succeeds, we should be able to directly update the MetadataManager to avoid having to fetch it from the metadata store. This is a minor optimization.
This fixes https://github.com/restatedev/restate/issues/3170.
This PR is based on #3164.
I guess this needs a rebase. Let's do that after I merge my stack.
I've rebased it on main now.