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

fix(querier): Record result length after response validation. #6176

Merged

Conversation

kavirajk
Copy link
Contributor

Signed-off-by: Kaviraj kavirajkanagaraj@gmail.com

What this PR does / why we need it:
Without this fix, it causes panic, if series or label endpoint returns error.

Which issue(s) this PR fixes:
Fixes NA

Special notes for your reviewer:
@sandeepsukhani found querier panics in one of our internal Loki cluster because of this bug.

Checklist

Without this fix, it causes panic, if series or label endpoint returns error.

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
@kavirajk kavirajk requested a review from a team as a code owner May 17, 2022 11:30
@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
+        distributor	0%
-            querier	-0.4%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

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

LGTM

@sandeepsukhani sandeepsukhani merged commit e5a89fa into main May 17, 2022
@sandeepsukhani sandeepsukhani deleted the kavirajk/fix-panic-series-label-metrics-recorder branch May 17, 2022 12:18
sandeepsukhani pushed a commit to sandeepsukhani/loki that referenced this pull request May 17, 2022
…ana#6176)

Without this fix, it causes panic, if series or label endpoint returns error.

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
sandeepsukhani pushed a commit that referenced this pull request May 17, 2022
Without this fix, it causes panic, if series or label endpoint returns error.

Signed-off-by: Kaviraj <kavirajkanagaraj@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.

3 participants