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

coordinator: remove obsolete GetRecoveryData #788

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

thomasten
Copy link
Member

In UpdateManifest, the recovery data is read from the recovery object and later set on the store. This is not required. It seems to be a leftover from when the func directly called sealState on the store, which expected the recovery data as an argument (649b476#diff-c9d54b7fdb3156de2d7b059657402c439b0065ae9bdd6d0b294edc4a6d6b2f40L293).

Furthermore, this behavior can be destructive in cases where recovery and store are not in sync. This shouldn't happen, but may be caused in edge cases, for example, if you start with multiparty recovery and later accidentally rerun with singleparty recovery. (But fixing this is just best effort. We don't support switching enterprise features after deployment.)

Proposed changes

  • Remove copying recovery data from Recovery to store in UpdateManifest
  • Remove GetRecoveryData from Recovery to not encourage letting the data flow in this direction

Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for marblerun-docs canceled.

Name Link
🔨 Latest commit 566637c
🔍 Latest deploy log https://app.netlify.com/sites/marblerun-docs/deploys/67878cc985c9e900085f267a

@thomasten thomasten added the no changelog This PR should not be part of the changelog label Jan 15, 2025
@thomasten thomasten merged commit 183281e into master Jan 15, 2025
9 of 10 checks passed
@thomasten thomasten deleted the t/remove-getrecoverydata branch January 15, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog This PR should not be part of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants