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

Limit of 0 disables max_bytes_per_tag_values_query #1447

Merged
merged 8 commits into from
May 31, 2022

Conversation

joe-elliott
Copy link
Member

@joe-elliott joe-elliott commented May 25, 2022

What this PR does:

  • Disables the max_bytes_per_tag_values_query limit when set to 0.
  • Returns a 500 instead of 200. (Screenshot of error in Grafana below)
  • Adds instance SearchTag/TagValues test. This tests the scenario where max_bytes_per_tag_values_query is set to 0.

image

Which issue(s) this PR fixes:
Fixes #

Checklist

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

Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -145,6 +147,94 @@ func TestInstanceSearch(t *testing.T) {
checkEqual(t, ids, sr)
}

func TestInstanceSearchTags(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we club this test with the above?

Copy link
Member Author

Choose a reason for hiding this comment

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

i moved the logic to write data to the instance to a single function shared by 3 tests. i do prefer the tests to remain independent.

modules/ingester/instance_search_test.go Show resolved Hide resolved
Copy link
Contributor

@annanay25 annanay25 left a comment

Choose a reason for hiding this comment

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

lgtm!

@joe-elliott joe-elliott merged commit ac5a136 into grafana:main May 31, 2022
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