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

[k174] populate empty resonse for IndexStatsResponse and VolumeResponse #11224

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

trevorwhitney
Copy link
Collaborator

Backport 265018b from #11209


Fixes a panic when the underlying response struct is accessed but not populated after an out-of-bounds request is short-circuited via NewEmptyResponse here. This PR ensures the embedded types are not nil in accordance with the other variants in this function.

)

Fixes a panic when the underlying response struct is accessed but not
populated after an out-of-bounds request is short-circuited via
`NewEmptyResponse`
[here](https://github.com/grafana/loki/blob/main/pkg/querier/queryrange/limits.go#L155-L164).
This PR ensures the embedded types are not nil in accordance with the
other variants in this function.

(cherry picked from commit 265018b)
@trevorwhitney trevorwhitney added size/S backport type/bug Somehing is not working as expected labels Nov 13, 2023
@trevorwhitney trevorwhitney requested a review from a team as a code owner November 13, 2023 21:59
@trevorwhitney trevorwhitney merged commit 82e0183 into k174 Nov 13, 2023
13 checks passed
@trevorwhitney trevorwhitney deleted the backport-11209-to-k174 branch November 13, 2023 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport size/XS type/bug Somehing is not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants