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

Skip stale postings in /active_series #9580

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Conversation

flxbk
Copy link
Contributor

@flxbk flxbk commented Oct 10, 2024

What this PR does

When iterating over postings to build the response for /active_series, it's not guaranteed that all series references will still be valid at iteration time. We should not error when hitting a stale reference but just build a response that does not include the series referenced by the stale posting.

Thanks to @bboreham for pointing this out.

Which issue(s) this PR fixes or relates to

Fixes #

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@flxbk flxbk marked this pull request as ready for review October 10, 2024 12:28
@flxbk flxbk requested a review from a team as a code owner October 10, 2024 12:28
Copy link
Contributor

@ortuman ortuman left a comment

Choose a reason for hiding this comment

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

approved. do you think it's worth adding or modifying any test to validate this behavior?

@flxbk
Copy link
Contributor Author

flxbk commented Oct 11, 2024

I don't see an easy way to trigger this condition in the tests we have for this code in particular. I'll leave this PR open for a bit, maybe there's something I'm missing.

@flxbk flxbk force-pushed the felix/active-series-stale-postings branch from caf2379 to 4bf2434 Compare October 18, 2024 09:33
@flxbk flxbk enabled auto-merge (squash) October 18, 2024 09:35
@flxbk flxbk merged commit 4e66244 into main Oct 18, 2024
29 checks passed
@flxbk flxbk deleted the felix/active-series-stale-postings branch October 18, 2024 09:46
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.

2 participants