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

shutdown upon parentchain code update #1634

Merged
merged 5 commits into from
Nov 6, 2024
Merged

Conversation

brenzi
Copy link
Collaborator

@brenzi brenzi commented Nov 5, 2024

closes #1633

code updates can cause extrinsics to fail unless we can update metadata and extrinsics AdditionalParams.
Our architecture currently doesn't allow to update these dynamically.

Shutting down the service gracefully (assuming automatic restart) is safe and clean and probably doesn't even cause additional downtime as we would need to pause TOP's anyway to avoid race conditions

caveat:

@brenzi brenzi requested a review from clangenb November 5, 2024 09:59
@brenzi brenzi added A0-core Affects a core part B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing labels Nov 5, 2024
@brenzi brenzi changed the title shutdown on parentchain code update shutdown upon parentchain code update Nov 5, 2024
Copy link
Contributor

@clangenb clangenb left a comment

Choose a reason for hiding this comment

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

Seems like a legit approach to me, given the caveats we are aware of that you mentioned.

app-libs/parentchain-interface/src/lib.rs Outdated Show resolved Hide resolved
sidechain/consensus/slots/src/lib.rs Outdated Show resolved Hide resolved
service/src/enclave/tls_ra.rs Outdated Show resolved Hide resolved
@brenzi brenzi merged commit 98accb3 into master Nov 6, 2024
13 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-core Affects a core part B1-releasenotes C1-low 📌 Does not elevate a release containing this beyond "low priority" E0-breaksnothing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shut down worker service gracefully whenever any parentchain dispatches System.CodeUpdated event
2 participants