Skip to content

Conversation

@pstibrany
Copy link
Contributor

@pstibrany pstibrany commented Nov 16, 2021

What this PR does: This PR adds a configurable filter to store-gateways to avoid loading blocks that are too young. Useful when used in combination with -querier.query-store-after option.

Fixes #365.

Checklist

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

Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany pstibrany marked this pull request as draft November 16, 2021 16:00
@pstibrany
Copy link
Contributor Author

pstibrany commented Nov 16, 2021

TODO: I will add another test that covers use of new filter from bucket stores. Also there is no need to make the filter public.

Update: Done.

…dexMetadataFetcher_Fetch test.

Signed-off-by: Peter Štibraný <[email protected]>
@pstibrany pstibrany marked this pull request as ready for review November 17, 2021 14:16
@pstibrany pstibrany requested a review from pracucci November 17, 2021 14:16
Signed-off-by: Peter Štibraný <[email protected]>
Copy link
Contributor

@stevesg stevesg left a comment

Choose a reason for hiding this comment

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

The timestamp checking logic looks good to me. I've just asked a couple of questions to help my own understanding.

Signed-off-by: Peter Štibraný <[email protected]>
Copy link
Contributor

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

Just suggesting a language improvement :)

Copy link
Contributor

@stevesg stevesg left a comment

Choose a reason for hiding this comment

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

Looks good assuming the language fix-ups @aknuds1 suggested. Should be a very useful optimization as I understand it.

Signed-off-by: Peter Štibraný <[email protected]>
Copy link
Collaborator

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

Good job! I left a couple of nits and a comment about the synced metric label value. A part from this, LGTM 👏

Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
Copy link
Collaborator

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

@pstibrany
Copy link
Contributor Author

Thank you all for reviews!

@pstibrany pstibrany enabled auto-merge (squash) November 18, 2021 14:05
@pstibrany pstibrany merged commit 72d6e0c into main Nov 18, 2021
@pstibrany pstibrany deleted the ignore-young-blocks branch November 18, 2021 14:25
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.

Make store-gateway -querier.query-store-after aware

4 participants