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

storcon: return an error for drain attempts while paused #9997

Merged

Conversation

VladLazar
Copy link
Contributor

@VladLazar VladLazar commented Dec 3, 2024

Problem

We currently allow drain operations to proceed while the node policy is paused.

Summary of changes

Return a precondition failed error in such cases. The orchestrator is updated in https://github.com/neondatabase/infra/pull/2544 to skip drain and fills if the pageserver is paused.

Closes: #9907

@VladLazar VladLazar requested a review from a team as a code owner December 3, 2024 17:09
@VladLazar VladLazar requested a review from jcsp December 3, 2024 17:09
Copy link
Collaborator

@jcsp jcsp left a comment

Choose a reason for hiding this comment

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

LGTM - we need to merge this one after the infra change I guess?

Copy link

github-actions bot commented Dec 3, 2024

7018 tests run: 6710 passed, 0 failed, 308 skipped (full report)


Flaky tests (4)

Postgres 15

Postgres 14

Code coverage* (full report)

  • functions: 30.7% (8267 of 26915 functions)
  • lines: 47.7% (65182 of 136548 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
a8fea74 at 2024-12-03T18:54:04.677Z :recycle:

@VladLazar
Copy link
Contributor Author

LGTM - we need to merge this one after the infra change I guess?

Yes, this can merge at any point after the infra change merges. No prod release coordination required.

@VladLazar VladLazar added this pull request to the merge queue Dec 4, 2024
Merged via the queue into main with commit 68205c4 Dec 4, 2024
84 checks passed
@VladLazar VladLazar deleted the vlad/return-error-when-starting-drain-from-paused-state branch December 4, 2024 09:27
awarus pushed a commit that referenced this pull request Dec 5, 2024
## Problem

We currently allow drain operations to proceed while the node policy is
paused.

## Summary of changes

Return a precondition failed error in such cases. The orchestrator is
updated in neondatabase/infra#2544 to skip drain
and fills if the pageserver is paused.

Closes: #9907
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.

storcon: deploy cleared Pause scheduling state from a node
2 participants