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

validate default limits config with other configs at startup #4573

Merged

Conversation

sandeepsukhani
Copy link
Contributor

This should also parse and set the matchers in default stream retention config

What this PR does / why we need it:
While investigating bug #4572, I noticed that we do not parse and populate matchers set in default stream retention which is done in Validate function. We call the Validate function while loading per tenant overrides but not for the default config during startup. This PR takes care of the issue.

I have also simplified validate function a bit by setting the matchers directly in the existing StreamRetention struct instead of building the whole struct again.

Which issue(s) this PR fixes:
Fixes #4572

This should also parse and set the matchers in default stream retention config
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

Lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compactor based retention rules not working
2 participants