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

overrides checks for nil tenant limits on AllByUserID #4687

Merged
merged 1 commit into from
Nov 7, 2021

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Nov 7, 2021

This protects against the case where TenantLimits can be nil, which I thought was impossible, but upon closer a closer look at modules.go, when there's no load path, it never gets instantiated. I confirmed locally using the config provided in #4684 that it failed before and succeeded after this fix.

Closes #4684

@owen-d owen-d requested a review from a team as a code owner November 7, 2021 17:35
Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@slim-bean slim-bean merged commit 4d8009c into grafana:main Nov 7, 2021
grafanabot pushed a commit that referenced this pull request Nov 7, 2021
slim-bean pushed a commit that referenced this pull request Nov 8, 2021
(cherry picked from commit 4d8009c)

Co-authored-by: Owen Diehl <ow.diehl@gmail.com>
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.

Loki 2.4 crashes every 10 minutes
2 participants