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

[v24.1.x] Fixed possible log discrepancy when using forced reconfiguration #18835

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #18153
Fixes: #18834,

@vbotbuildovich vbotbuildovich added this to the v24.1.x-next milestone Jun 6, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 6, 2024
ztlpn and others added 4 commits June 6, 2024 13:54
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)
Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 640d048)
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 backport-pr-18153-v24.1.x-627 branch from d7aa8f6 to b987f2a Compare June 6, 2024 13:54
@mmaslankaprv mmaslankaprv merged commit 9b0a80c into redpanda-data:v24.1.x Jun 6, 2024
17 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.1.x-next, v24.1.8 Jun 14, 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.

4 participants