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: fix repeated location_conf returning no shards #7314

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Apr 4, 2024

Problem

When a location_conf request was repeated with no changes, we failed to build the list of shards in the result.

Summary of changes

Remove conditional that only generated a list of updates if something had really changed. This does some redundant database updates, but it is preferable to having a whole separate code path for no-op changes.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

Copy link

github-actions bot commented Apr 4, 2024

2754 tests run: 2630 passed, 0 failed, 124 skipped (full report)


Flaky tests (1)

Postgres 15

  • test_delete_timeline_client_hangup: debug

Code coverage* (full report)

  • functions: 28.0% (6394 of 22870 functions)
  • lines: 46.8% (45008 of 96116 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
93f77b7 at 2024-04-04T17:50:07.301Z :recycle:

@jcsp jcsp added t/bug Issue Type: Bug c/storage/controller Component: Storage Controller labels Apr 4, 2024
@jcsp jcsp marked this pull request as ready for review April 4, 2024 13:20
@jcsp jcsp requested a review from a team as a code owner April 4, 2024 13:20
@jcsp jcsp requested a review from arpad-m April 4, 2024 13:20
@jcsp jcsp force-pushed the jcsp/storcon-repeated-location-conf branch from 0b49b89 to 7dc14fc Compare April 4, 2024 14:27
control_plane/attachment_service/src/service.rs Outdated Show resolved Hide resolved
Co-authored-by: Arpad Müller <arpad-m@users.noreply.github.com>
@jcsp jcsp enabled auto-merge (squash) April 4, 2024 17:00
@jcsp jcsp merged commit 0c6367a into main Apr 4, 2024
46 of 47 checks passed
@jcsp jcsp deleted the jcsp/storcon-repeated-location-conf branch April 4, 2024 17:34
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.

3 participants