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

Block partial results #1007

Merged
merged 19 commits into from
Oct 8, 2021
Merged

Block partial results #1007

merged 19 commits into from
Oct 8, 2021

Conversation

mapno
Copy link
Member

@mapno mapno commented Oct 5, 2021

What this PR does:

It supports partial results when block queries fail.

The general idea is to let queriers fail when querying blocks and decide the query frontend if the errors are too many or if the partial result is worth returning.

Partial results are indicated with http 206 (partial content).

Superseeds #988.

Which issue(s) this PR fixes:
Contributes to #899

Checklist

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

modules/frontend/config.go Outdated Show resolved Hide resolved
modules/frontend/config.go Outdated Show resolved Hide resolved
modules/frontend/querysharding.go Outdated Show resolved Hide resolved
modules/frontend/querysharding.go Outdated Show resolved Hide resolved
modules/querier/querier.go Outdated Show resolved Hide resolved
modules/querier/http.go Show resolved Hide resolved
tempodb/pool/pool.go Outdated Show resolved Hide resolved
tempodb/tempodb.go Outdated Show resolved Hide resolved
@mapno mapno requested a review from joe-elliott October 7, 2021 17:04
joe-elliott
joe-elliott previously approved these changes Oct 7, 2021
Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

couple of nits, but looks good!

merge when you're ready

CHANGELOG.md Outdated Show resolved Hide resolved
modules/querier/querier.go Outdated Show resolved Hide resolved
@mapno mapno merged commit 9cf0e7e into grafana:main Oct 8, 2021
@mapno mapno deleted the block-partial-results branch October 8, 2021 13:40
@@ -10,21 +10,22 @@ import (
"github.com/cortexproject/cortex/pkg/ring"
ring_client "github.com/cortexproject/cortex/pkg/ring/client"
"github.com/cortexproject/cortex/pkg/util/log"
"github.com/go-kit/log/level"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a different level package from what we use: github.com/go-kit/kit/log/level

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.

3 participants