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.2.x] cluster: invoke config_frontend methods on controller shard #17211

Conversation

pgellert
Copy link
Contributor

Backport of PR #17088

Various places in the code were calling do_patch directly without regard
to the requirement that do_patch has to be called on the controller
shard.

This caused a fixture test to fail because it tried to invoke do_patch
on all shards and this violates the assertion in do_patch of
config_frontend.cc, causing it to fail with the error message "Must be
called on version_shard".

This fixes it by changing config_fronter::patch() to invoke do_patch on
the controller shard, and moving all calls of do_patch to call patch
instead.

(cherry picked from commit b7202f1)
Just like patch, we also have to call do_set_next_version on the same
shard because config_frontend::set_next_version might be called from a
background fiber.

(cherry picked from commit ed04fc3)
@pgellert pgellert added this to the v23.2.x-next milestone Mar 20, 2024
@pgellert pgellert added the kind/backport PRs targeting a stable branch label Mar 20, 2024
@pgellert pgellert self-assigned this Mar 20, 2024
@pgellert pgellert marked this pull request as ready for review March 20, 2024 11:16
Copy link
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

Compared with source PR and it lgtm

@michael-redpanda michael-redpanda merged commit 263db1f into redpanda-data:v23.2.x Mar 20, 2024
23 checks passed
@pgellert pgellert deleted the vbotbuildovich/backport-17088-v23.2.x-373 branch March 20, 2024 15:03
@piyushredpanda piyushredpanda modified the milestones: v23.2.x-next, v23.2.28 Apr 16, 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.

3 participants