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

Enforce -validation.create-grace-period in the query-frontend when the configured value is 0 #5829

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

pracucci
Copy link
Collaborator

What this PR does

The -validation.create-grace-period is always enforced in distributors and ingesters, even when the configured value is 0. However, in the query-frontend we consider the value 0 as "disabled". In this PR I propose to align the behaviour between query-frontend and distributor/ingester.

The default value for this setting is 10 minutes, so the behaviour will not change for anyone unless they explicitly set a value of 0. If they explicitly set a value of 0, the distributor/ingester will not ingest any sample with timestamp > real-world time, so in practice there should be no sample in the future to query as well.

Which issue(s) this PR fixes or relates to

N/A

Checklist

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

…e configured value is 0

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci marked this pull request as ready for review August 24, 2023 08:44
@pracucci pracucci requested a review from a team as a code owner August 24, 2023 08:44
@pracucci pracucci merged commit 1a44fbc into main Aug 25, 2023
27 checks passed
@pracucci pracucci deleted the query-frontend-grace-period branch August 25, 2023 08:18
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.

2 participants