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.2.x] rptest: request feature state from each node in await_feature #23584

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #23579

Fixes ControllerSnapshotPolicyTest.test_snapshotting_policy test.

Before the test would spuriously fail because it would try to deactivate
and then reactive the feature before waiting for deactivation to finish.

The admin endpoint checks feature state without a linearizable barrier
to short-circuit execution if feature is already active. This is why we
need to wait for previous command to be applied first. To make sure the
in-memory state is updated.

Also, request feature state only from started nodes. We have tests (i.e.
upgrade tests) which try to enable features before all nodes are
started.

(cherry picked from commit f068b0b)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Oct 1, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Oct 1, 2024
@nvartolomei nvartolomei merged commit b71dc03 into redpanda-data:v24.2.x Oct 2, 2024
17 checks passed
@BenPope BenPope modified the milestones: v24.2.x-next, v24.2.7 Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants