Skip to content

Block partial results#1007

Merged
mapno merged 19 commits intografana:mainfrom
mapno:block-partial-results
Oct 8, 2021
Merged

Block partial results#1007
mapno merged 19 commits intografana:mainfrom
mapno:block-partial-results

Conversation

@mapno
Copy link
Copy Markdown
Contributor

@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]

@mapno mapno force-pushed the block-partial-results branch from 9f6bbe7 to ddb78ad Compare October 5, 2021 11:57
Comment thread modules/frontend/querysharding.go Outdated
Comment thread modules/frontend/config.go Outdated
Comment thread modules/frontend/config.go Outdated
Comment thread modules/frontend/querysharding.go Outdated
Comment thread modules/frontend/querysharding.go Outdated
Comment thread modules/querier/querier.go Outdated
Comment thread modules/querier/http.go
Comment thread tempodb/pool/pool.go Outdated
Comment thread tempodb/tempodb.go Outdated
@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
Copy Markdown
Collaborator

@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

Comment thread CHANGELOG.md Outdated
Comment thread modules/querier/querier.go Outdated
Comment thread modules/frontend/config.go Outdated
@mapno mapno requested a review from KMiller-Grafana as a code owner October 8, 2021 10:24
@mapno mapno merged commit 9cf0e7e into grafana:main Oct 8, 2021
@mapno mapno deleted the block-partial-results branch October 8, 2021 13:40
"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
Copy Markdown
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