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

Increase block-ranges-period for OOO native histogram integration test #9592

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fionaliao
Copy link
Contributor

What this PR does

This is a follow up to #9567 - that PR spotted an issue where the OOO native histograms disabled error was not being mapped to a client error.

Prior to that PR, we already had an integration test that checked that trying to ingest OOO NH samples when the OOO NH flag was disabled returned a 400 and that test actually passed. The reason why it passed was that another 400 error being returned (out of bounds) - this is as -blocks-storage.tsdb.block-ranges-period, which is used to determine if a sample is out of bounds, is set to a very low value in tests. I've increased this value the out of bounds check passes and the OOO NH disabled error is hit instead.

Note that the test expectations haven't changed - we check OOO NH samples error with a 400, but the underlying error is now the OOO NH disabled error (I checked by running the test and looking at logs). The current integration test Mimir client doesn't return the response body so we can only access the status code. The bugfix PR (#9567) has a unit test that checks the specific error is returned. It's still useful to modify -blocks-storage.tsdb.block-ranges-period just in case in the future we accidentally start mapping the OOO NH error incorrectly again.

Which issue(s) this PR fixes or relates to

N/A

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.

@fionaliao fionaliao requested a review from a team as a code owner October 11, 2024 16:02
Copy link
Contributor

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

nice catch, approved with a nit

@@ -168,6 +168,12 @@ func TestOOOHistogramIngestionDisabled(t *testing.T) {
map[string]string{
"-ingester.out-of-order-time-window": "10m",
"-ingester.native-histograms-ingestion-enabled": "true",
// Default block-ranges-period for integration tests is 1m
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: let's add "-ingester.ooo-native-histograms-ingestion-enabled": "false" while we're at it. Just in case we change the default/remove the flag, make the test fail more explicitly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in aeb921c

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