Navigation Menu

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

Add -store.max-query-length support to blocks storage #2826

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Jul 2, 2020

What this PR does:
The -store.max-query-length is currently enforced in the query-frontend (before splitting) and in the chunks store. In this PR I propose to validate it in the querier so that it applies both to the chunks and blocks storage.

However, I've noticed the limit in the chunks store is also used by Loki, reason why I haven't removed it from there. /cc @cyriltovena

WDYT?

Which issue(s) this PR fixes:
N/A

Checklist

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

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Nice work.

pkg/util/validation/limits.go Outdated Show resolved Hide resolved
pracucci and others added 2 commits July 2, 2020 16:17
Signed-off-by: Marco Pracucci <marco@pracucci.com>

Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci merged commit 1c03080 into cortexproject:master Jul 6, 2020
@pracucci pracucci deleted the add-max-query-length-support-to-blocks-storage branch July 6, 2020 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants