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

storage controller: handle legacy TenantConf in consistency_check #10422

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

jcsp
Copy link
Collaborator

@jcsp jcsp commented Jan 16, 2025

Problem

We were comparing serialized configs from the database with serialized configs from memory. If fields have been added/removed to TenantConfig, this generates spurious consistency errors. This is fine in test environments, but limits the usefulness of this debug API in the field.

Closes: #10369

Summary of changes

  • Do a decode/encode cycle on the config before comparing it, so that it will have exactly the expected fields.

@jcsp jcsp added t/bug Issue Type: Bug c/storage/controller Component: Storage Controller labels Jan 16, 2025
Copy link

7326 tests run: 6949 passed, 0 failed, 377 skipped (full report)


Flaky tests (4)

Postgres 17

Code coverage* (full report)

  • functions: 33.7% (8423 of 25018 functions)
  • lines: 49.2% (70459 of 143318 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
2118484 at 2025-01-16T11:10:45.502Z :recycle:

@jcsp jcsp marked this pull request as ready for review January 16, 2025 12:06
@jcsp jcsp requested a review from a team as a code owner January 16, 2025 12:06
@jcsp jcsp requested review from erikgrinaker and skyzh and removed request for erikgrinaker January 16, 2025 12:07
@jcsp jcsp added this pull request to the merge queue Jan 16, 2025
Merged via the queue into main with commit 2e13a3a Jan 16, 2025
90 checks passed
@jcsp jcsp deleted the jcsp/issue-10369-consistency-check branch January 16, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/storage/controller Component: Storage Controller t/bug Issue Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage controller: make consistency_check API work with different TenantConf formats
2 participants