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

VSR: SuperBlock.VSRState.CheckpointState.release #1666

Merged
merged 7 commits into from Mar 8, 2024

Conversation

sentientwaffle
Copy link
Member

@sentientwaffle sentientwaffle commented Mar 8, 2024

These are some miscellaneous prerequisites for upgrades:

  • vsr.Client: s/Client.release()/Client.release_message(): To disambiguate from the "release version".
  • VSR: Add Replica.release, Replica.release_client_min, and Client.release. (release_client_min isn't check yet
  • VSR: Add SuperBlock.VSRState.CheckpointState.release: Upgrades will bump this release number via a checkpoint.
  • VSR/Replica: Evict client with old version
  • VSR/Replica: Evict client with new version
  • VSR/Replica: Fix Reply release: Reply release should mirror prepare release. (It was incorrectly returning the replica's release!)

To disambiguate from the "release version".
@@ -513,7 +516,7 @@ pub fn Client(comptime StateMachine_: type, comptime MessageBus: type) type {
}

/// Releases a message back to the message bus.
pub fn release(self: *Self, message: *Message) void {
pub fn release_message(self: *Self, message: *Message) void {
Copy link
Member Author

Choose a reason for hiding this comment

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

I prefer release_message to release even ignoring the name collision -- it mirrors get_message.

@sentientwaffle sentientwaffle marked this pull request as ready for review March 8, 2024 16:02
@@ -354,11 +356,13 @@ pub const SuperBlockHeader = extern struct {
/// The number of manifest blocks in the manifest log.
manifest_block_count: u32,

release: u16,
Copy link
Member

Choose a reason for hiding this comment

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

Document semantics --- all prepares within this checkpoint were executed by a replica with a given release. That is, this applies not only to checkpoint_op, but to the entire log wrap of ops.

@sentientwaffle sentientwaffle added this pull request to the merge queue Mar 8, 2024
Merged via the queue into main with commit 4763f93 Mar 8, 2024
27 checks passed
@sentientwaffle sentientwaffle deleted the dj-vsr-superblock-release branch March 8, 2024 17:36
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.

None yet

2 participants