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

ra_aux: Expose effective machine version, current term #474

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

the-mikedavis
Copy link
Member

@the-mikedavis the-mikedavis commented Sep 24, 2024

A machine might want to know the effective machine version to determine if it should emit an effect like {append, NewCmd} that can only be handled once a cluster reaches an effective machine version.

This change also exposes the current_term so that the callers of the ra_aux API have essentially the same metadata as is passed to the RaMachine:apply/3 callback.

A machine might want this information to determine if it should emit
an effect like `{append, NewCmd}` that can only be handled once a
cluster reaches an effective machine version.
@the-mikedavis the-mikedavis marked this pull request as ready for review September 24, 2024 20:10
@the-mikedavis the-mikedavis self-assigned this Sep 24, 2024
@the-mikedavis the-mikedavis added this to the 2.14.1 milestone Sep 24, 2024
With `current_term/1` (this change), `last_applied/1` and
`effective_machine_version/1` from the parent commit, the aux API
reflects essentially the same information as is passed as metadata to
the `RaMachine:apply/3` callback (`ra_machine:command_meta_data()`).
@the-mikedavis the-mikedavis changed the title ra_aux: Expose effective machine version ra_aux: Expose effective machine version, current term Oct 4, 2024
@kjnilsson kjnilsson merged commit d7e3c31 into main Oct 16, 2024
8 checks passed
@the-mikedavis the-mikedavis deleted the md/aux/machine-version branch October 16, 2024 12:50
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.

2 participants