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

prepare-partition-downscale: Switch to Active state only if partition is currently Inactive. #7394

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

pstibrany
Copy link
Member

@pstibrany pstibrany commented Feb 15, 2024

What this PR does

This PR fixes tiny bug in /ingester/prepare-partition-downscale endpoint: DELETE method (= cancellation of downscale) will switch partition to Active state only if it was Inactive. Previously this could switch Pending -> Active too early, which is undesired.

This endpoint is supposed to work together with rollout-operator, and rollout-operator calls this endpoint with DELETE method regularly.

During tests, unrelated problem was discovered with initialization of usage stats metrics. This will be fixed in separate PR.

Checklist

  • Tests updated.
  • [na] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany requested a review from a team as a code owner February 15, 2024 14:10
@pracucci pracucci self-requested a review February 15, 2024 14:11
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pstibrany pstibrany merged commit 0c984ee into main Feb 15, 2024
28 checks passed
@pstibrany pstibrany deleted the ignore-delete-on-pending-state branch February 15, 2024 14:36
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.

None yet

2 participants