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

Bypass sharding middleware when a query can't be sharded. #2709

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

cyriltovena
Copy link
Contributor

Found this issue while working on LogQL v2.

Need to rebase to this once merged to make some new cool expr working with the frontend.

Signed-off-by: Cyril Tovena cyril.tovena@gmail.com

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2709 into master will increase coverage by 0.00%.
The diff coverage is 72.22%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2709   +/-   ##
=======================================
  Coverage   61.37%   61.37%           
=======================================
  Files         173      173           
  Lines       13444    13446    +2     
=======================================
+ Hits         8251     8253    +2     
+ Misses       4440     4439    -1     
- Partials      753      754    +1     
Impacted Files Coverage Δ
pkg/querier/queryrange/querysharding.go 44.31% <68.75%> (+0.72%) ⬆️
pkg/logql/sharding.go 54.71% <100.00%> (+0.82%) ⬆️
pkg/promtail/targets/file/tailer.go 68.88% <0.00%> (-4.45%) ⬇️
pkg/logql/evaluator.go 92.81% <0.00%> (+0.42%) ⬆️
pkg/querier/queryrange/downstreamer.go 97.64% <0.00%> (+2.35%) ⬆️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 3640429 into grafana:master Oct 1, 2020
cyriltovena added a commit to cyriltovena/loki that referenced this pull request Oct 21, 2020
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
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.

3 participants