-
Notifications
You must be signed in to change notification settings - Fork 91
Blueprint: Replace all_omicron_zones() with separate in-service / expunged methods
#9521
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
403bf34
Blueprint execution: Split up top-level cleanup implementation
jgallagher fd08df8
Merge branch 'main' into john/split-up-execution-cleanup
jgallagher 6570853
all_omicron_zones() -> danger_all_omicron_zones()
jgallagher 0ea816b
add in_service_zones()
jgallagher 9d62653
add expunged_zones()
jgallagher 42de0a4
pruning more danger_all_omicron_zones() calls
jgallagher 0a8b08f
split up expunged_zones()
jgallagher 89f4ab2
break up `all_nexus_zones()`
jgallagher db9769e
break up `all_nexus_zones()`
jgallagher cb9d939
fixup after rebase
jgallagher 91b7163
remove more danger_all_omicron_zones() uses
jgallagher fbf8663
add clickhouse IP expunge zone access reason
jgallagher 5a5b079
combine two expunged_zones methods into one with a `ReadyForCleanup` arg
jgallagher 11ce5b4
cargo fmt
jgallagher 05c81a9
last danger_all_omicron_zones() external caller
jgallagher e9c005b
unused imports
jgallagher 5e716e3
remove more internal danger_all_omicron_zones() calls
jgallagher 62241ab
cleanup
jgallagher c2f79f2
documentation
jgallagher 38a8bca
cargo fmt
jgallagher 08531e2
rename
jgallagher baf0391
rename ReadyForCleanup -> ZoneRunningStatus
jgallagher 4203003
add Blueprint::all_in_service_and_expunged_zones()
jgallagher 940ed08
fix erroneous behavior change to `Blueprint::find_generation_for_self()`
jgallagher 1f87152
typos
jgallagher 4195e4f
Merge remote-tracking branch 'origin/main' into john/blueprint-expung…
jgallagher 12cfe41
unused imports
jgallagher 7f511d6
remove `reason` from `all_maybe_running_zones()`
jgallagher e217b5a
Merge remote-tracking branch 'origin/main' into john/blueprint-expung…
jgallagher 00904f8
Merge commit '9bbae395b' into john/split-up-execution-cleanup
jgallagher 4423eb6
Merge branch 'john/split-up-execution-cleanup' into john/blueprint-ex…
jgallagher 1bf726d
Merge branch 'main' into john/blueprint-expunged-reason
jgallagher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few places where a caller legitimately wants to look at all zones, and I've updated all of those to follow this pattern where we chain in-service into expunged. This does mean we loop over all zones twice; I thought about adding a combo method but was worried it would be confusing. Open to feedback there though; this could be something like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, like you did with
expunged_nexus_zones_ready_for_cleanup- this is probably worth doing?I agree that inferring
ReadyForCleanup::Bothseems right, I can't imagine a world where we want to access "all in service zones, but only a subset of expunged zones" (if a caller wanted all "maybe running" zones, what they're doing is kinda racy, if a caller wanted all guaranteed stopped zones, that would be really weird).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 4203003