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

deps: upgrade raft from v1.6.1 -> v1.7.1 #24029

Merged
merged 1 commit into from
Sep 23, 2024
Merged

deps: upgrade raft from v1.6.1 -> v1.7.1 #24029

merged 1 commit into from
Sep 23, 2024

Conversation

schmichael
Copy link
Member

The major change between Raft v1.6 -> v1.7 was the introduction of the Prevote feature. Before Prevote, when a partitioned node rejoins a cluster it may cause an election even if the cluster was stable. Prevote can avoid this useless election so reintroducing partitioned servers to an otherwise stable cluster becomes seamless.

Full details: hashicorp/raft#530

In #20335 we discussed whether or not to add a configuration option to disable prevote in case bugs were discovered. While bugs have been found (hence the v1.7.1 version as opposed to v1.7.0), I'm choosing to follow Vault's lead of straightfordwardly bumping the raft dependency: hashicorp/vault#27605 and hashicorp/vault#28218

Fixes #20335

The major change between Raft v1.6 -> v1.7 was the introduction of the
Prevote feature. Before Prevote, when a partitioned node rejoins a
cluster it may cause an election even if the cluster was stable. Prevote
can avoid this useless election so reintroducing partitioned servers to
an otherwise stable cluster becomes seamless.

Full details: hashicorp/raft#530

In #20335 we discussed whether or not to add a configuration option to
disable prevote in case bugs were discovered. While bugs have been found
(hence the v1.7.1 version as opposed to v1.7.0), I'm choosing to follow
Vault's lead of straightfordwardly bumping the raft dependency:
hashicorp/vault#27605 and hashicorp/vault#28218
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM 🥳

Copy link
Contributor

@pkazmierczak pkazmierczak left a comment

Choose a reason for hiding this comment

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

LGTM and a welcome change for sure, but I'd love to see this tested in nomad-bench against raft 1.6 to see if there aren't any performance regressions.

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

As much as a functional change like this is scary to backport, we should do so anyways. There aren't LTS branches for Raft so if there's a security bug in the library in the future we'd end up having to backport anyways.

@schmichael
Copy link
Member Author

As much as a functional change like this is scary to backport, we should do so anyways. There aren't LTS branches for Raft so if there's a security bug in the library in the future we'd end up having to backport anyways.

Vault does not have plans to backport Raft 1.7.1, so I would like to match their behavior. If a Raft CVE or critical-bug fix lands in Raft 1.7.x, we will backport Raft 1.7.x for that fix. Hopefully that will give PreVote a bit more time testing in the wild, although we have no reason to suspect issues.

LGTM and a welcome change for sure, but I'd love to see this tested in nomad-bench against raft 1.6 to see if there aren't any performance regressions.

Created an internal task for me to do this post-merge: https://hashicorp.atlassian.net/browse/NET-11147

@schmichael schmichael merged commit 2376248 into main Sep 23, 2024
26 checks passed
@schmichael schmichael deleted the f-raft-prevote branch September 23, 2024 18:51
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.

4 participants