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

[v23.3.x] Fixed possible log discrepancy when using forced reconfiguration #18855

Conversation

mmaslankaprv
Copy link
Member

Backport of PR #18153

@mmaslankaprv mmaslankaprv added this to the v23.3.x-next milestone Jun 7, 2024
@mmaslankaprv mmaslankaprv added the kind/backport PRs targeting a stable branch label Jun 7, 2024
@mmaslankaprv mmaslankaprv marked this pull request as ready for review June 7, 2024 12:28
Changed the way how Redpanda raft handles force reconfigurations.
Instead of appending configuration to the log we keep a volatile in
memory override for the configuration that was forced. The override is
dropped whenever a node receives different configuration. This approach
allow us to avoid discrepancies as not data are appended to the log
without the active leader.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 01bef11)
@mmaslankaprv mmaslankaprv force-pushed the vbotbuildovich/backport-18153-v23.3.x-399 branch 2 times, most recently from e5cfb8a to 929a2ee Compare June 10, 2024 09:54
Added a check in `cluster::controller_backend` validating if
configuration override has been reset before trying to finish the
update. The dependency is already there as backend is waiting for the
leader to be elected and confirmed however it is easier to read when the
dependency is explicitly expressed

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit ac67ca3)
@mmaslankaprv mmaslankaprv force-pushed the vbotbuildovich/backport-18153-v23.3.x-399 branch from 929a2ee to e2ef789 Compare June 10, 2024 14:30
@mmaslankaprv
Copy link
Member Author

/ci-repeat 1

@piyushredpanda
Copy link
Contributor

Known issues with #16474 and #14892

@piyushredpanda piyushredpanda merged commit e2e9e11 into redpanda-data:v23.3.x Jun 12, 2024
12 of 16 checks passed
@BenPope BenPope modified the milestones: v23.3.x-next, v23.3.17 Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v23.3.x] Fixed possible log discrepancy when using forced reconfiguration
4 participants