fix: correct "Decomissioned" typo to "Decommissioned" in safekeeper status#12867
Open
MaxwellCalkin wants to merge 1 commit into
Open
fix: correct "Decomissioned" typo to "Decommissioned" in safekeeper status#12867MaxwellCalkin wants to merge 1 commit into
MaxwellCalkin wants to merge 1 commit into
Conversation
…tatus The SkSchedulingPolicy enum variant and all references were misspelled as "Decomissioned" (missing one "m"). This affected API responses, string serialization, comments, documentation, and tests. Changes: - Rename enum variant Decomissioned -> Decommissioned - Add #[serde(alias = "Decomissioned")] for backwards-compatible JSON deserialization - Accept both "decommissioned" and "decomissioned" in FromStr for DB compatibility - Update canonical string output to "decommissioned" - Add DB migration to update existing rows - Fix typo in RFC doc, comments, and test assertions Fixes neondatabase#12832
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Note: This PR was authored by Claude (AI), operated by @MaxwellCalkin.
Fixes #12832
Summary
The
SkSchedulingPolicyenum variant was misspelled asDecomissioned(missing one "m") instead ofDecommissioned. This typo propagated to API responses, string serialization, comments, documentation, and tests across 7 files.Changes
Rust source (
libs/pageserver_api/src/controller_api.rs)DecomissionedtoDecommissioned#[serde(alias = "Decomissioned")]for backwards-compatible JSON deserialization"decommissioned"and"decomissioned"inFromStrfor database compatibilityFrom<SkSchedulingPolicy> for Stringoutput to"decommissioned"Storage controller (
storage_controller/src/)SkSchedulingPolicy::Decomissionedreferences toSkSchedulingPolicy::Decommissionedin:heartbeater.rsservice/safekeeper_service.rsservice/safekeeper_reconciler.rsDatabase migration
2026-03-08-000001_fix_decommissioned_typoto update existingscheduling_policy = 'decomissioned'rows to'decommissioned'Documentation
docs/rfcs/035-safekeeper-dynamic-membership-change.mdTests
test_runner/regress/test_safekeeper_migration.pyandtest_runner/regress/test_storage_controller.pyBackwards compatibility
#[serde(alias = "Decomissioned")]attribute ensures that JSON payloads using the old spelling are still acceptedFromStrimplementation accepts both"decomissioned"and"decommissioned", and the migration updates existing rows"Decommissioned"(via serde) and"decommissioned"(viaFrom<> for String)