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

[store] Add response hints to label APIs #3437

Merged
merged 4 commits into from
Nov 19, 2020

Conversation

gouthamve
Copy link
Contributor

@gouthamve gouthamve commented Nov 12, 2020

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

In Cortex, we shard blocks b/w store-gateways, hence we need to send the list of blockids to query and the list of ids that have been queried in the response to make sure all the relevant blocks are queried. This has already been done for the Series API.

I have not yet added request hints yet. I will add them in a subsequent PR.

Verification

tbh, I have not tested it yet. I am only relying on the unit tests. Any tips on how I can test it?

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Thanks @gouthamve! LGTM. Could you take a look at the comments, fix tests and rebase master, please?

pkg/store/bucket_test.go Show resolved Hide resolved
pkg/store/bucket.go Outdated Show resolved Hide resolved
pkg/store/bucket.go Outdated Show resolved Hide resolved
pkg/store/bucket_test.go Show resolved Hide resolved
pkg/store/bucket.go Outdated Show resolved Hide resolved
pkg/store/bucket.go Outdated Show resolved Hide resolved
@pracucci pracucci self-requested a review November 17, 2020 11:08
@gouthamve gouthamve force-pushed the hints-labels-apis branch 3 times, most recently from cffb972 to 342db76 Compare November 18, 2020 11:03
@gouthamve gouthamve changed the title WIP: [store] Add request and response hints to label APIs [store] Add response hints to label APIs Nov 18, 2020
@gouthamve
Copy link
Contributor Author

Fixes #2984

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Member

@bwplotka bwplotka 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! Minor style nit only, otherwise LGTM 👍

pkg/store/bucket.go Outdated Show resolved Hide resolved
pkg/store/bucket.go Outdated Show resolved Hide resolved
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Fixes thanos-io#2984

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
@gouthamve
Copy link
Contributor Author

@bwplotka Nice catch, not sure what I was thinking there. Fixed it!

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

LGTM, we can ignore Markdown check link, it's flaky, otherwise, we can merge on green

@pracucci pracucci merged commit 7ff9ba1 into thanos-io:master Nov 19, 2020
@gouthamve gouthamve deleted the hints-labels-apis branch November 19, 2020 08:30
Oghenebrume50 pushed a commit to Oghenebrume50/thanos that referenced this pull request Dec 7, 2020
* Add hints support to labels API responses

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>

* Move to dedicated hints types and add tests

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>

* Add external labels to the values returned in API

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>

* Add changelog entries

Fixes thanos-io#2984

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
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