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

Backport of replication: fix potential panic during upgrades into release/1.5.x #17493

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #17476 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

The below text is copied from the body of the original PR.


If the authoritative region has been upgraded to a version of Nomad that has new replicated objects (such as ACL Auth Methods, ACL Binding Rules, etc.), the non-authoritative regions will start replicating those objects as soon as their leader is upgraded. If a server in the non-authoritative region is upgraded and then becomes the leader before all the other servers in the region have been upgraded, then it will attempt to write a Raft log entry that the followers don't understand. The followers will then panic.

Add same the minimum version checks that we do for RPC writes to the leader's replication loop.


This will need to be backported to 1.5.x but hand-picked over to 1.4.x because some of these changes are only in 1.5.x

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/auth-object-replication-panic/uniquely-firm-wren branch from a2ae5fa to c539c31 Compare June 12, 2023 12:54
@hc-github-team-nomad-core hc-github-team-nomad-core merged commit b0e29b1 into release/1.5.x Jun 12, 2023
@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/auth-object-replication-panic/uniquely-firm-wren branch from 0db16db to 42fa898 Compare June 12, 2023 12:54
@hc-github-team-nomad-core hc-github-team-nomad-core deleted the backport/auth-object-replication-panic/uniquely-firm-wren branch June 12, 2023 12:54
tgross pushed a commit that referenced this pull request Jun 12, 2023
…ease/1.5.x (#17493)

This pull request was automerged via backport-assistant
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