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(query_range): invalid memory address or nil pointer dereference #1875

Merged
merged 3 commits into from Dec 27, 2022

Conversation

srikanthccv
Copy link
Member

Partially addresses #1685

There are two helpful pointers from the query service log shared by the issue author.

... query was canceled in query queue
... 2022/11/03 19:17:31 http: superfluous response.WriteHeader call from github.com/gorilla/handlers.(*compressResponseWriter).WriteHeader (compress.go:26)

This arises from the Prometheus library, relevant issue here prometheus/prometheus#6139

query was canceled in query queue

This usually happens when the context is cancelled. It's not clear why it's cancelled in the linked issue context.

Either way, we don't want to let the code run beyond this error point and throw a nil pointer exception. I will leave that issue open until we get to the bottom of the issue if we can find a way to reproduce it.

@github-actions github-actions bot added bug Something isn't working codeball:approved Codeball labels Dec 20, 2022
github-actions[bot]
github-actions bot previously approved these changes Dec 20, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Codeball: LGTM! 👍

confidence: 0.94 | [dashboard]

@srikanthccv srikanthccv added this to the v0.13.0 milestone Dec 20, 2022
@srikanthccv srikanthccv marked this pull request as ready for review December 20, 2022 06:26
@github-actions github-actions bot dismissed their stale review December 20, 2022 14:25

confidence: 0.21 | [dashboard]

@ankitnayan ankitnayan merged commit eef48c5 into develop Dec 27, 2022
@ankitnayan ankitnayan deleted the issue-1685 branch December 27, 2022 05:58
@sonarcloud
Copy link

sonarcloud bot commented Dec 27, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working codeball:needs-careful-review Codeball
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants